pub(super) struct U256 {
left: u128,
right: u128,
}Expand description
Duct tape two u128s together.
Fields§
§left: u128§right: u128Implementations§
Source§impl U256
impl U256
pub(super) fn set_bit(&mut self, offset: usize)
pub(super) fn as_array(&self) -> [u8; 32]
pub(super) fn non_zero(&self) -> bool
pub(super) fn shl(self) -> U256
pub(super) fn shr(self) -> U256
pub(super) fn and(self, rhs: U256) -> U256
pub(super) fn or(self, rhs: U256) -> U256
pub(super) fn not(self) -> U256
Trait Implementations§
Auto Trait Implementations§
impl Freeze for U256
impl RefUnwindSafe for U256
impl Send for U256
impl Sync for U256
impl Unpin for U256
impl UnwindSafe for U256
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more