Struct stacks_common::util::uint::Uint512
source · #[repr(C)]pub struct Uint512(pub [u64; 8]);Expand description
Little-endian large integer type
Tuple Fields§
§0: [u64; 8]Implementations§
source§impl Uint512
impl Uint512
source§impl Uint512
impl Uint512
sourcepub fn to_u8_slice(&self) -> [u8; 64]
pub fn to_u8_slice(&self) -> [u8; 64]
as litte-endian byte array
sourcepub fn to_u8_slice_be(&self) -> [u8; 64]
pub fn to_u8_slice_be(&self) -> [u8; 64]
as big-endian byte array
sourcepub fn from_hex_le(hex: &str) -> Option<Uint512>
pub fn from_hex_le(hex: &str) -> Option<Uint512>
from a little-endian hex string padding is expected
sourcepub fn from_hex_be(hex: &str) -> Option<Uint512>
pub fn from_hex_be(hex: &str) -> Option<Uint512>
from a big-endian hex string padding is expected
source§impl Uint512
impl Uint512
sourcepub fn from_uint256(n: &Uint256) -> Uint512
pub fn from_uint256(n: &Uint256) -> Uint512
from Uint256
pub fn to_uint256(&self) -> Uint256
Trait Implementations§
source§impl BitArray for Uint512
impl BitArray for Uint512
source§impl<'de> Deserialize<'de> for Uint512
impl<'de> Deserialize<'de> for Uint512
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 Uint512
impl Ord for Uint512
source§impl PartialEq<Uint512> for Uint512
impl PartialEq<Uint512> for Uint512
source§impl PartialOrd<Uint512> for Uint512
impl PartialOrd<Uint512> for Uint512
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 Uint512
impl Eq for Uint512
Auto Trait Implementations§
impl RefUnwindSafe for Uint512
impl Send for Uint512
impl Sync for Uint512
impl Unpin for Uint512
impl UnwindSafe for Uint512
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