Struct bitcoin::util::uint::Uint128 [−][src]
Little-endian large integer type
Implementations
impl Uint128
[src]
impl Uint128
[src]pub fn as_ptr(&self) -> *const u64
[src]
Converts the object to a raw pointer
pub fn as_mut_ptr(&mut self) -> *mut u64
[src]
Converts the object to a mutable raw pointer
pub fn len(&self) -> usize
[src]
Returns the length of the object as an array
pub fn is_empty(&self) -> bool
[src]
Returns whether the object, as an array, is empty. Always false.
pub fn as_bytes(&self) -> &[u64; 2]
[src]
Returns the underlying bytes.
pub fn to_bytes(&self) -> [u64; 2]
[src]
Returns the underlying bytes.
pub fn into_bytes(self) -> [u64; 2]
[src]
Returns the underlying bytes.
impl Uint128
[src]
impl Uint128
[src]pub fn low_u32(&self) -> u32
[src]
Conversion to u32
pub fn low_u64(&self) -> u64
[src]
Conversion to u64
pub fn bits(&self) -> usize
[src]
Return the least number of bits needed to represent the number
pub fn mul_u32(self, other: u32) -> Uint128
[src]
Multiplication by u32
pub fn from_u64(init: u64) -> Option<Uint128>
[src]
Create an object from a given unsigned 64-bit integer
pub fn from_i64(init: i64) -> Option<Uint128>
[src]
Create an object from a given signed 64-bit integer
pub fn from_be_bytes(bytes: [u8; 16]) -> Uint128
[src]
Creates big integer value from a byte array using big-endian encoding
pub fn from_be_slice(bytes: &[u8]) -> Result<Uint128, ParseLengthError>
[src]
Creates big integer value from a byte slice using big-endian encoding
pub fn to_be_bytes(&self) -> [u8; 16]
[src]
Convert a big integer into a byte array using big-endian encoding
Trait Implementations
impl<'de> Deserialize<'de> for Uint128
[src]
impl<'de> Deserialize<'de> for Uint128
[src]fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
impl PartialOrd<Uint128> for Uint128
[src]
impl PartialOrd<Uint128> for Uint128
[src]