[−]Struct chain::bigint::uint::U512   
Little-endian large integer type
Trait Implementations
impl Ord for U512
impl Ord for U512fn cmp(&self, other: &U512) -> Ordering
fn cmp(&self, other: &U512) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src] 
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src] 
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Eq for U512
impl Eq for U512impl PartialEq<U512> for U512
impl PartialEq<U512> for U512fn eq(&self, other: &U512) -> bool
fn eq(&self, other: &U512) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &U512) -> bool
fn ne(&self, other: &U512) -> boolThis method tests for !=.
impl Mul<U512> for U512
impl Mul<U512> for U512type Output = U512
The resulting type after applying the * operator.
fn mul(self, other: U512) -> U512
fn mul(self, other: U512) -> U512Performs the * operation.
impl Debug for U512
impl Debug for U512fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl FromStr for U512
impl FromStr for U512type Err = FromHexError
The associated error which can be returned from parsing.
fn from_str(value: &str) -> Result<U512, <U512 as FromStr>::Err>
fn from_str(value: &str) -> Result<U512, <U512 as FromStr>::Err>Parses a string s to return a value of this type. Read more
impl BitXor<U512> for U512
impl BitXor<U512> for U512type Output = U512
The resulting type after applying the ^ operator.
fn bitxor(self, other: U512) -> U512
fn bitxor(self, other: U512) -> U512Performs the ^ operation.
impl Hash for U512
impl Hash for U512fn hash<__H>(&self, state: &mut __H) where
    __H: Hasher, 
fn hash<__H>(&self, state: &mut __H) where
    __H: Hasher, Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher, 1.3.0[src] 
fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Uint for U512
impl Uint for U512fn from_dec_str(value: &str) -> Result<U512, FromDecStrErr>
fn from_dec_str(value: &str) -> Result<U512, FromDecStrErr>Convert from a decimal string.
fn low_u32(&self) -> u32
fn low_u32(&self) -> u32Conversion to u32
fn low_u64(&self) -> u64
fn low_u64(&self) -> u64Conversion to u64
fn as_u32(&self) -> u32
fn as_u32(&self) -> u32Conversion to u32 with overflow checking
fn as_u64(&self) -> u64
fn as_u64(&self) -> u64Conversion to u64 with overflow checking
fn is_zero(&self) -> bool
fn is_zero(&self) -> boolReturns
fn bits(&self) -> usize
fn bits(&self) -> usizeReturn the least number of bits needed to represent the number
fn bit(&self, index: usize) -> bool
fn bit(&self, index: usize) -> boolReturn if specific bit is set
fn byte(&self, index: usize) -> u8
fn byte(&self, index: usize) -> u8Return single byte
fn to_big_endian(&self, bytes: &mut [u8])
fn to_big_endian(&self, bytes: &mut [u8])Convert to the sequence of bytes with a big endian
fn to_little_endian(&self, bytes: &mut [u8])
fn to_little_endian(&self, bytes: &mut [u8])Convert to the sequence of bytes with a little endian
fn to_hex(&self) -> String
fn to_hex(&self) -> StringConvert to a non-zero-prefixed hex representation (not prefixed by 0x). 
fn exp10(n: usize) -> U512
fn exp10(n: usize) -> U512Create Uint(10**n)
fn zero() -> U512
fn zero() -> U512Returns new instance equalling zero.
fn one() -> U512
fn one() -> U512Returns new instance equalling one.
fn max_value() -> U512
fn max_value() -> U512Returns the largest value that can be represented by this integer type.
fn pow(self, expon: U512) -> U512
fn pow(self, expon: U512) -> U512Fast exponentation by squaring https://en.wikipedia.org/wiki/Exponentiation_by_squaring
fn overflowing_pow(self, expon: U512) -> (U512, bool)
fn overflowing_pow(self, expon: U512) -> (U512, bool)Fast exponentation by squaring https://en.wikipedia.org/wiki/Exponentiation_by_squaring
fn overflowing_add(self, other: U512) -> (U512, bool)
fn overflowing_add(self, other: U512) -> (U512, bool)Optimized instructions
fn overflowing_sub(self, other: U512) -> (U512, bool)
fn overflowing_sub(self, other: U512) -> (U512, bool)Subtract another Uint from this returning result and possible overflow
fn overflowing_mul(self, other: U512) -> (U512, bool)
fn overflowing_mul(self, other: U512) -> (U512, bool)Multiple this Uint with other returning result and possible overflow
fn overflowing_div(self, other: U512) -> (U512, bool)
fn overflowing_div(self, other: U512) -> (U512, bool)Divide this Uint by other returning result and possible overflow
fn overflowing_rem(self, other: U512) -> (U512, bool)
fn overflowing_rem(self, other: U512) -> (U512, bool)Returns reminder of division of this Uint by other and possible overflow
fn overflowing_neg(self) -> (U512, bool)
fn overflowing_neg(self) -> (U512, bool)Returns negation of this Uint and overflow (always true)
impl Not for U512
impl Not for U512type Output = U512
The resulting type after applying the ! operator.
fn not(self) -> U512
fn not(self) -> U512Performs the unary ! operation.
impl Shl<usize> for U512
impl Shl<usize> for U512type Output = U512
The resulting type after applying the << operator.
fn shl(self, shift: usize) -> U512
fn shl(self, shift: usize) -> U512Performs the << operation.
impl Div<U512> for U512
impl Div<U512> for U512type Output = U512
The resulting type after applying the / operator.
fn div(self, other: U512) -> U512
fn div(self, other: U512) -> U512Performs the / operation.
impl From<u32> for U512
impl From<u32> for U512impl From<u8> for U512
impl From<u8> for U512impl<'a> From<&'a U256> for U512
impl<'a> From<&'a U256> for U512impl From<usize> for U512
impl From<usize> for U512impl From<i64> for U512
impl From<i64> for U512impl From<U512> for U128
impl From<U512> for U128impl From<isize> for U512
impl From<isize> for U512impl From<U128> for U512
impl From<U128> for U512impl From<U256> for U512
impl From<U256> for U512impl<'a> From<&'a [u8]> for U512
impl<'a> From<&'a [u8]> for U512impl From<i8> for U512
impl From<i8> for U512impl From<u16> for U512
impl From<u16> for U512impl From<i32> for U512
impl From<i32> for U512impl<'a> From<&'a U512> for U256
impl<'a> From<&'a U512> for U256impl From<u64> for U512
impl From<u64> for U512impl From<&'static str> for U512
impl From<&'static str> for U512impl From<i16> for U512
impl From<i16> for U512impl From<U512> for U256
impl From<U512> for U256impl PartialOrd<U512> for U512
impl PartialOrd<U512> for U512fn partial_cmp(&self, other: &U512) -> Option<Ordering>
fn partial_cmp(&self, other: &U512) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src] 
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src] 
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src] 
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src] 
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Display for U512
impl Display for U512fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Copy for U512
impl Copy for U512impl LowerHex for U512
impl LowerHex for U512impl Clone for U512
impl Clone for U512fn clone(&self) -> U512
fn clone(&self) -> U512Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl BitAnd<U512> for U512
impl BitAnd<U512> for U512type Output = U512
The resulting type after applying the & operator.
fn bitand(self, other: U512) -> U512
fn bitand(self, other: U512) -> U512Performs the & operation.
impl Add<U512> for U512
impl Add<U512> for U512type Output = U512
The resulting type after applying the + operator.
fn add(self, other: U512) -> U512
fn add(self, other: U512) -> U512Performs the + operation.
impl Rem<U512> for U512
impl Rem<U512> for U512type Output = U512
The resulting type after applying the % operator.
fn rem(self, other: U512) -> U512
fn rem(self, other: U512) -> U512Performs the % operation.
impl Default for U512
impl Default for U512impl Shr<usize> for U512
impl Shr<usize> for U512type Output = U512
The resulting type after applying the >> operator.
fn shr(self, shift: usize) -> U512
fn shr(self, shift: usize) -> U512Performs the >> operation.
impl Sub<U512> for U512
impl Sub<U512> for U512type Output = U512
The resulting type after applying the - operator.
fn sub(self, other: U512) -> U512
fn sub(self, other: U512) -> U512Performs the - operation.
impl BitOr<U512> for U512
impl BitOr<U512> for U512Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
    T: Clone, [src] 
impl<T> ToOwned for T where
    T: Clone, type Owned = T
fn to_owned(&self) -> T[src] 
fn to_owned(&self) -> TCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)[src] 
fn clone_into(&self, target: &mut T)🔬 This is a nightly-only experimental API.  (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> From for T[src] 
impl<T> From for Timpl<T> ToString for T where
    T: Display + ?Sized, [src] 
impl<T> ToString for T where
    T: Display + ?Sized, impl<T, U> Into for T where
    U: From<T>, [src] 
impl<T, U> Into for T where
    U: From<T>, impl<T, U> TryFrom for T where
    T: From<U>, [src] 
impl<T, U> TryFrom for T where
    T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src] 
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
    T: ?Sized, [src] 
impl<T> Borrow for T where
    T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow(&self) -> &T[src] 
fn borrow(&self) -> &TImmutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
    U: TryFrom<T>, [src] 
impl<T, U> TryInto for T where
    U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src] 
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> BorrowMut for T where
    T: ?Sized, [src] 
impl<T> BorrowMut for T where
    T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow_mut(&mut self) -> &mut T[src] 
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
    T: 'static + ?Sized, [src] 
impl<T> Any for T where
    T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src] 
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API.  (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more