Struct stacks_common::util::uint::Uint256
source · #[repr(C)]pub struct Uint256(pub [u64; 4]);
Expand description
Little-endian large integer type
Tuple Fields§
§0: [u64; 4]
Implementations§
source§impl Uint256
impl Uint256
source§impl Uint256
impl Uint256
sourcepub fn to_u8_slice(&self) -> [u8; 32]
pub fn to_u8_slice(&self) -> [u8; 32]
as litte-endian byte array
sourcepub fn to_u8_slice_be(&self) -> [u8; 32]
pub fn to_u8_slice_be(&self) -> [u8; 32]
as big-endian byte array
sourcepub fn from_hex_le(hex: &str) -> Option<Uint256>
pub fn from_hex_le(hex: &str) -> Option<Uint256>
from a little-endian hex string padding is expected
sourcepub fn from_hex_be(hex: &str) -> Option<Uint256>
pub fn from_hex_be(hex: &str) -> Option<Uint256>
from a big-endian hex string padding is expected
Trait Implementations§
source§impl BitArray for Uint256
impl BitArray for Uint256
source§impl<'de> Deserialize<'de> for Uint256
impl<'de> Deserialize<'de> for Uint256
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Uint256
impl Ord for Uint256
source§impl PartialEq<Uint256> for Uint256
impl PartialEq<Uint256> for Uint256
source§impl PartialOrd<Uint256> for Uint256
impl PartialOrd<Uint256> for Uint256
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Uint256
impl Eq for Uint256
Auto Trait Implementations§
impl RefUnwindSafe for Uint256
impl Send for Uint256
impl Sync for Uint256
impl Unpin for Uint256
impl UnwindSafe for Uint256
Blanket Implementations§
§impl<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere T: Default,
§unsafe fn initialize(place: *mut T)
unsafe fn initialize(place: *mut T)
Called to initialize a place to a valid value, after it is set
to all-bits-zero. Read more