[−][src]Struct bitcoin::util::uint::Uint128
Little-endian large integer type
Implementations
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]
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 slice array using big-endian encoding
Trait Implementations
impl Add<Uint128> for Uint128
[src]
type Output = Uint128
The resulting type after applying the +
operator.
pub fn add(self, other: Uint128) -> Uint128
[src]
impl BitAnd<Uint128> for Uint128
[src]
type Output = Uint128
The resulting type after applying the &
operator.
pub fn bitand(self, other: Uint128) -> Uint128
[src]
impl BitArray for Uint128
[src]
pub fn bit(&self, index: usize) -> bool
[src]
pub fn bit_slice(&self, start: usize, end: usize) -> Uint128
[src]
pub fn mask(&self, n: usize) -> Uint128
[src]
pub fn trailing_zeros(&self) -> usize
[src]
pub fn zero() -> Uint128
[src]
pub fn one() -> Uint128
[src]
impl BitOr<Uint128> for Uint128
[src]
type Output = Uint128
The resulting type after applying the |
operator.
pub fn bitor(self, other: Uint128) -> Uint128
[src]
impl BitXor<Uint128> for Uint128
[src]
type Output = Uint128
The resulting type after applying the ^
operator.
pub fn bitxor(self, other: Uint128) -> Uint128
[src]
impl Clone for Uint128
[src]
impl Copy for Uint128
[src]
impl Debug for Uint128
[src]
impl Decodable for Uint128
[src]
impl Default for Uint128
[src]
impl Display for Uint128
[src]
impl Div<Uint128> for Uint128
[src]
type Output = Uint128
The resulting type after applying the /
operator.
pub fn div(self, other: Uint128) -> Uint128
[src]
impl Encodable for Uint128
[src]
impl Eq for Uint128
[src]
impl<'a> From<&'a [u64]> for Uint128
[src]
impl Hash for Uint128
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Index<Range<usize>> for Uint128
[src]
type Output = [u64]
The returned type after indexing.
pub fn index(&self, index: Range<usize>) -> &[u64]ⓘ
[src]
impl Index<RangeFrom<usize>> for Uint128
[src]
type Output = [u64]
The returned type after indexing.
pub fn index(&self, index: RangeFrom<usize>) -> &[u64]ⓘ
[src]
impl Index<RangeFull> for Uint128
[src]
type Output = [u64]
The returned type after indexing.
pub fn index(&self, _: RangeFull) -> &[u64]ⓘ
[src]
impl Index<RangeTo<usize>> for Uint128
[src]
type Output = [u64]
The returned type after indexing.
pub fn index(&self, index: RangeTo<usize>) -> &[u64]ⓘ
[src]
impl Index<usize> for Uint128
[src]
impl Mul<Uint128> for Uint128
[src]
type Output = Uint128
The resulting type after applying the *
operator.
pub fn mul(self, other: Uint128) -> Uint128
[src]
impl Not for Uint128
[src]
type Output = Uint128
The resulting type after applying the !
operator.
pub fn not(self) -> Uint128
[src]
impl Ord for Uint128
[src]
pub fn cmp(&self, other: &Uint128) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Uint128> for Uint128
[src]
impl PartialOrd<Uint128> for Uint128
[src]
pub fn partial_cmp(&self, other: &Uint128) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Rem<Uint128> for Uint128
[src]
type Output = Uint128
The resulting type after applying the %
operator.
pub fn rem(self, other: Uint128) -> Uint128
[src]
impl Shl<usize> for Uint128
[src]
type Output = Uint128
The resulting type after applying the <<
operator.
pub fn shl(self, shift: usize) -> Uint128
[src]
impl Shr<usize> for Uint128
[src]
type Output = Uint128
The resulting type after applying the >>
operator.
pub fn shr(self, shift: usize) -> Uint128
[src]
impl StructuralEq for Uint128
[src]
impl StructuralPartialEq for Uint128
[src]
impl Sub<Uint128> for Uint128
[src]
Auto Trait Implementations
impl RefUnwindSafe for Uint128
[src]
impl Send for Uint128
[src]
impl Sync for Uint128
[src]
impl Unpin for Uint128
[src]
impl UnwindSafe for Uint128
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,