pub type U256 = Uint<{ _ }>;
Expand description
256-bit unsigned big integer.
Aliased Type§
pub struct U256 { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Encoding for U256
impl Encoding for U256
Source§fn from_be_bytes(bytes: Self::Repr) -> Self
fn from_be_bytes(bytes: Self::Repr) -> Self
Decode from big endian bytes.
Source§fn from_le_bytes(bytes: Self::Repr) -> Self
fn from_le_bytes(bytes: Self::Repr) -> Self
Decode from little endian bytes.
Source§fn to_be_bytes(&self) -> Self::Repr
fn to_be_bytes(&self) -> Self::Repr
Encode to big endian bytes.
Source§fn to_le_bytes(&self) -> Self::Repr
fn to_le_bytes(&self) -> Self::Repr
Encode to little endian bytes.
Source§impl SplitMixed<Uint<{ <$name>::LIMBS / 2 }>, Uint<{ <$name>::LIMBS / 2 }>> for U256
impl SplitMixed<Uint<{ <$name>::LIMBS / 2 }>, Uint<{ <$name>::LIMBS / 2 }>> for U256
Source§fn split_mixed(&self) -> (Uint<{ _ }>, Uint<{ _ }>)
fn split_mixed(&self) -> (Uint<{ _ }>, Uint<{ _ }>)
Split this number into parts, returning its high and low components
respectively.