#[repr(C, align(32))]pub struct U256 { /* private fields */ }
Expand description
A 256-bit unsigned integer type.
Implementations§
Source§impl U256
impl U256
Sourcepub fn as_biguint(&self) -> BigUint
pub fn as_biguint(&self) -> BigUint
Value of this U256 as a BigUint.
Sourcepub fn from_biguint(value: &BigUint) -> Self
pub fn from_biguint(value: &BigUint) -> Self
Creates a new U256 from a BigUint.
Sourcepub fn as_le_bytes(&self) -> &[u8; 32]
pub fn as_le_bytes(&self) -> &[u8; 32]
The little-endian byte representation of this U256.
Trait Implementations§
Source§impl<'a> AddAssign<&'a U256> for U256
impl<'a> AddAssign<&'a U256> for U256
Source§fn add_assign(&mut self, rhs: &'a U256)
fn add_assign(&mut self, rhs: &'a U256)
Performs the
+=
operation. Read moreSource§impl AddAssign for U256
impl AddAssign for U256
Source§fn add_assign(&mut self, rhs: U256)
fn add_assign(&mut self, rhs: U256)
Performs the
+=
operation. Read moreSource§impl<'a> BitAndAssign<&'a U256> for U256
impl<'a> BitAndAssign<&'a U256> for U256
Source§fn bitand_assign(&mut self, rhs: &'a U256)
fn bitand_assign(&mut self, rhs: &'a U256)
Performs the
&=
operation. Read moreSource§impl BitAndAssign for U256
impl BitAndAssign for U256
Source§fn bitand_assign(&mut self, rhs: U256)
fn bitand_assign(&mut self, rhs: U256)
Performs the
&=
operation. Read moreSource§impl<'a> BitOrAssign<&'a U256> for U256
impl<'a> BitOrAssign<&'a U256> for U256
Source§fn bitor_assign(&mut self, rhs: &'a U256)
fn bitor_assign(&mut self, rhs: &'a U256)
Performs the
|=
operation. Read moreSource§impl BitOrAssign for U256
impl BitOrAssign for U256
Source§fn bitor_assign(&mut self, rhs: U256)
fn bitor_assign(&mut self, rhs: U256)
Performs the
|=
operation. Read moreSource§impl<'a> BitXorAssign<&'a U256> for U256
impl<'a> BitXorAssign<&'a U256> for U256
Source§fn bitxor_assign(&mut self, rhs: &'a U256)
fn bitxor_assign(&mut self, rhs: &'a U256)
Performs the
^=
operation. Read moreSource§impl BitXorAssign for U256
impl BitXorAssign for U256
Source§fn bitxor_assign(&mut self, rhs: U256)
fn bitxor_assign(&mut self, rhs: U256)
Performs the
^=
operation. Read moreSource§impl<'a> MulAssign<&'a U256> for U256
impl<'a> MulAssign<&'a U256> for U256
Source§fn mul_assign(&mut self, rhs: &'a U256)
fn mul_assign(&mut self, rhs: &'a U256)
Performs the
*=
operation. Read moreSource§impl MulAssign for U256
impl MulAssign for U256
Source§fn mul_assign(&mut self, rhs: U256)
fn mul_assign(&mut self, rhs: U256)
Performs the
*=
operation. Read moreSource§impl Ord for U256
impl Ord for U256
Source§impl PartialOrd for U256
impl PartialOrd for U256
Source§impl<'a> ShlAssign<&'a U256> for U256
impl<'a> ShlAssign<&'a U256> for U256
Source§fn shl_assign(&mut self, rhs: &'a U256)
fn shl_assign(&mut self, rhs: &'a U256)
Performs the
<<=
operation. Read moreSource§impl ShlAssign for U256
impl ShlAssign for U256
Source§fn shl_assign(&mut self, rhs: U256)
fn shl_assign(&mut self, rhs: U256)
Performs the
<<=
operation. Read moreSource§impl<'a> ShrAssign<&'a U256> for U256
impl<'a> ShrAssign<&'a U256> for U256
Source§fn shr_assign(&mut self, rhs: &'a U256)
fn shr_assign(&mut self, rhs: &'a U256)
Performs the
>>=
operation. Read moreSource§impl ShrAssign for U256
impl ShrAssign for U256
Source§fn shr_assign(&mut self, rhs: U256)
fn shr_assign(&mut self, rhs: U256)
Performs the
>>=
operation. Read moreSource§impl<'a> SubAssign<&'a U256> for U256
impl<'a> SubAssign<&'a U256> for U256
Source§fn sub_assign(&mut self, rhs: &'a U256)
fn sub_assign(&mut self, rhs: &'a U256)
Performs the
-=
operation. Read moreSource§impl SubAssign for U256
impl SubAssign for U256
Source§fn sub_assign(&mut self, rhs: U256)
fn sub_assign(&mut self, rhs: U256)
Performs the
-=
operation. Read moreimpl Eq for U256
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)