[−][src]Struct uint::U256
Little-endian large integer type
Methods
impl U256[src]
impl U256pub const MAX: U256[src]
pub fn from_dec_str(value: &str) -> Result<Self, FromDecStrErr>[src]
pub fn from_dec_str(value: &str) -> Result<Self, FromDecStrErr>Convert from a decimal string.
pub fn low_u32(&self) -> u32[src]
pub fn low_u32(&self) -> u32Conversion to u32
pub fn low_u64(&self) -> u64[src]
pub fn low_u64(&self) -> u64Conversion to u64
pub fn as_u32(&self) -> u32[src]
pub fn as_u32(&self) -> u32pub fn as_u64(&self) -> u64[src]
pub fn as_u64(&self) -> u64pub fn as_usize(&self) -> usize[src]
pub fn as_usize(&self) -> usizeConversion to usize with overflow checking
Panics
Panics if the number is larger than usize::max_value().
pub fn is_zero(&self) -> bool[src]
pub fn is_zero(&self) -> boolWhether this is zero.
pub fn bits(&self) -> usize[src]
pub fn bits(&self) -> usizeReturn the least number of bits needed to represent the number
pub fn bit(&self, index: usize) -> bool[src]
pub fn bit(&self, index: usize) -> boolpub fn leading_zeros(&self) -> u32[src]
pub fn leading_zeros(&self) -> u32Returns the number of leading zeros in the binary representation of self.
pub fn trailing_zeros(&self) -> u32[src]
pub fn trailing_zeros(&self) -> u32Returns the number of leading zeros in the binary representation of self.
pub fn byte(&self, index: usize) -> u8[src]
pub fn byte(&self, index: usize) -> u8pub fn to_big_endian(&self, bytes: &mut [u8])[src]
pub fn to_big_endian(&self, bytes: &mut [u8])Write to the slice in big-endian format.
pub fn to_little_endian(&self, bytes: &mut [u8])[src]
pub fn to_little_endian(&self, bytes: &mut [u8])Write to the slice in little-endian format.
pub fn exp10(n: usize) -> Self[src]
pub fn exp10(n: usize) -> Selfpub fn zero() -> Self[src]
pub fn zero() -> SelfZero (additive identity) of this type.
pub fn one() -> Self[src]
pub fn one() -> SelfOne (multiplicative identity) of this type.
pub fn max_value() -> Self[src]
pub fn max_value() -> SelfThe maximum value which can be inhabited by this type.
pub fn pow(self, expon: Self) -> Self[src]
pub fn pow(self, expon: Self) -> SelfFast exponentation by squaring https://en.wikipedia.org/wiki/Exponentiation_by_squaring
Panics
Panics if the result overflows the type.
pub fn overflowing_pow(self, expon: Self) -> (Self, bool)[src]
pub fn overflowing_pow(self, expon: Self) -> (Self, bool)Fast exponentation by squaring https://en.wikipedia.org/wiki/Exponentiation_by_squaring
pub fn overflowing_add(self, other: U256) -> (U256, bool)[src]
pub fn overflowing_add(self, other: U256) -> (U256, bool)Optimized instructions
pub fn saturating_add(self, other: U256) -> U256[src]
pub fn saturating_add(self, other: U256) -> U256Addition which saturates at the maximum value.
pub fn checked_add(self, other: U256) -> Option<U256>[src]
pub fn checked_add(self, other: U256) -> Option<U256>Checked addition. Returns None if overflow occurred.
pub fn overflowing_sub(self, other: U256) -> (U256, bool)[src]
pub fn overflowing_sub(self, other: U256) -> (U256, bool)Subtraction which underflows and returns a flag if it does.
pub fn saturating_sub(self, other: U256) -> U256[src]
pub fn saturating_sub(self, other: U256) -> U256Subtraction which saturates at zero.
pub fn checked_sub(self, other: U256) -> Option<U256>[src]
pub fn checked_sub(self, other: U256) -> Option<U256>Checked subtraction. Returns None if overflow occurred.
pub fn overflowing_mul(self, other: U256) -> (U256, bool)[src]
pub fn overflowing_mul(self, other: U256) -> (U256, bool)Multiply with overflow, returning a flag if it does.
pub fn saturating_mul(self, other: U256) -> U256[src]
pub fn saturating_mul(self, other: U256) -> U256Multiplication which saturates at the maximum value..
pub fn checked_mul(self, other: U256) -> Option<U256>[src]
pub fn checked_mul(self, other: U256) -> Option<U256>Checked multiplication. Returns None if overflow occurred.
pub fn overflowing_div(self, other: U256) -> (U256, bool)[src]
pub fn overflowing_div(self, other: U256) -> (U256, bool)Division with overflow
pub fn checked_div(self, other: U256) -> Option<U256>[src]
pub fn checked_div(self, other: U256) -> Option<U256>Checked division. Returns None if other == 0.
pub fn overflowing_rem(self, other: U256) -> (U256, bool)[src]
pub fn overflowing_rem(self, other: U256) -> (U256, bool)Modulus with overflow.
pub fn checked_rem(self, other: U256) -> Option<U256>[src]
pub fn checked_rem(self, other: U256) -> Option<U256>Checked modulus. Returns None if other == 0.
pub fn overflowing_neg(self) -> (U256, bool)[src]
pub fn overflowing_neg(self) -> (U256, bool)Negation with overflow.
pub fn checked_neg(self) -> Option<U256>[src]
pub fn checked_neg(self) -> Option<U256>Checked negation. Returns None unless self == 0.
pub fn mul_u32(self, other: u32) -> Self[src]
pub fn mul_u32(self, other: u32) -> Self: Use Mul<u32> instead.
Multiplication by u32
pub fn from_big_endian(slice: &[u8]) -> Self[src]
pub fn from_big_endian(slice: &[u8]) -> SelfConverts from big endian representation bytes in memory
Can also be used as (&slice).into(), as it is default From
slice implementation for U256
pub fn from_little_endian(slice: &[u8]) -> Self[src]
pub fn from_little_endian(slice: &[u8]) -> SelfConverts from little endian representation bytes in memory
Trait Implementations
impl Clone for U256[src]
impl Clone for U256fn clone(&self) -> U256[src]
fn clone(&self) -> U256Returns 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 PartialEq<U256> for U256[src]
impl PartialEq<U256> for U256fn eq(&self, other: &U256) -> bool[src]
fn eq(&self, other: &U256) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &U256) -> bool[src]
fn ne(&self, other: &U256) -> boolThis method tests for !=.
impl Eq for U256[src]
impl Eq for U256impl Ord for U256[src]
impl Ord for U256fn cmp(&self, other: &U256) -> Ordering[src]
fn cmp(&self, other: &U256) -> 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 PartialOrd<U256> for U256[src]
impl PartialOrd<U256> for U256fn partial_cmp(&self, other: &U256) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &U256) -> 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<'a> From<&'a U256> for U256[src]
impl<'a> From<&'a U256> for U256impl From<U256> for [u8; 32][src]
impl From<U256> for [u8; 32]impl From<u64> for U256[src]
impl From<u64> for U256impl From<u8> for U256[src]
impl From<u8> for U256impl From<u16> for U256[src]
impl From<u16> for U256impl From<u32> for U256[src]
impl From<u32> for U256impl From<usize> for U256[src]
impl From<usize> for U256impl From<i64> for U256[src]
impl From<i64> for U256impl From<i8> for U256[src]
impl From<i8> for U256impl From<i16> for U256[src]
impl From<i16> for U256impl From<i32> for U256[src]
impl From<i32> for U256impl From<isize> for U256[src]
impl From<isize> for U256impl<'a> From<&'a [u8]> for U256[src]
impl<'a> From<&'a [u8]> for U256impl<T> Add<T> for U256 where
T: Into<U256>, [src]
impl<T> Add<T> for U256 where
T: Into<U256>, type Output = U256
The resulting type after applying the + operator.
fn add(self, other: T) -> U256[src]
fn add(self, other: T) -> U256Performs the + operation.
impl<'a, T> Add<T> for &'a U256 where
T: Into<U256>, [src]
impl<'a, T> Add<T> for &'a U256 where
T: Into<U256>, type Output = U256
The resulting type after applying the + operator.
fn add(self, other: T) -> U256[src]
fn add(self, other: T) -> U256Performs the + operation.
impl<T> Sub<T> for U256 where
T: Into<U256>, [src]
impl<T> Sub<T> for U256 where
T: Into<U256>, type Output = U256
The resulting type after applying the - operator.
fn sub(self, other: T) -> U256[src]
fn sub(self, other: T) -> U256Performs the - operation.
impl<'a, T> Sub<T> for &'a U256 where
T: Into<U256>, [src]
impl<'a, T> Sub<T> for &'a U256 where
T: Into<U256>, type Output = U256
The resulting type after applying the - operator.
fn sub(self, other: T) -> U256[src]
fn sub(self, other: T) -> U256Performs the - operation.
impl Mul<u32> for U256[src]
impl Mul<u32> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: u32) -> U256[src]
fn mul(self, other: u32) -> U256Performs the * operation.
impl<'a> Mul<u32> for &'a U256[src]
impl<'a> Mul<u32> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: u32) -> U256[src]
fn mul(self, other: u32) -> U256Performs the * operation.
impl Mul<u8> for U256[src]
impl Mul<u8> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: u8) -> U256[src]
fn mul(self, other: u8) -> U256Performs the * operation.
impl<'a> Mul<&'a u8> for U256[src]
impl<'a> Mul<&'a u8> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: &'a u8) -> U256[src]
fn mul(self, other: &'a u8) -> U256Performs the * operation.
impl<'a> Mul<&'a u8> for &'a U256[src]
impl<'a> Mul<&'a u8> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: &'a u8) -> U256[src]
fn mul(self, other: &'a u8) -> U256Performs the * operation.
impl<'a> Mul<u8> for &'a U256[src]
impl<'a> Mul<u8> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: u8) -> U256[src]
fn mul(self, other: u8) -> U256Performs the * operation.
impl Mul<u16> for U256[src]
impl Mul<u16> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: u16) -> U256[src]
fn mul(self, other: u16) -> U256Performs the * operation.
impl<'a> Mul<&'a u16> for U256[src]
impl<'a> Mul<&'a u16> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: &'a u16) -> U256[src]
fn mul(self, other: &'a u16) -> U256Performs the * operation.
impl<'a> Mul<&'a u16> for &'a U256[src]
impl<'a> Mul<&'a u16> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: &'a u16) -> U256[src]
fn mul(self, other: &'a u16) -> U256Performs the * operation.
impl<'a> Mul<u16> for &'a U256[src]
impl<'a> Mul<u16> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: u16) -> U256[src]
fn mul(self, other: u16) -> U256Performs the * operation.
impl Mul<u64> for U256[src]
impl Mul<u64> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: u64) -> U256[src]
fn mul(self, other: u64) -> U256Performs the * operation.
impl<'a> Mul<&'a u64> for U256[src]
impl<'a> Mul<&'a u64> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: &'a u64) -> U256[src]
fn mul(self, other: &'a u64) -> U256Performs the * operation.
impl<'a> Mul<&'a u64> for &'a U256[src]
impl<'a> Mul<&'a u64> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: &'a u64) -> U256[src]
fn mul(self, other: &'a u64) -> U256Performs the * operation.
impl<'a> Mul<u64> for &'a U256[src]
impl<'a> Mul<u64> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: u64) -> U256[src]
fn mul(self, other: u64) -> U256Performs the * operation.
impl Mul<usize> for U256[src]
impl Mul<usize> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: usize) -> U256[src]
fn mul(self, other: usize) -> U256Performs the * operation.
impl<'a> Mul<&'a usize> for U256[src]
impl<'a> Mul<&'a usize> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: &'a usize) -> U256[src]
fn mul(self, other: &'a usize) -> U256Performs the * operation.
impl<'a> Mul<&'a usize> for &'a U256[src]
impl<'a> Mul<&'a usize> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: &'a usize) -> U256[src]
fn mul(self, other: &'a usize) -> U256Performs the * operation.
impl<'a> Mul<usize> for &'a U256[src]
impl<'a> Mul<usize> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: usize) -> U256[src]
fn mul(self, other: usize) -> U256Performs the * operation.
impl Mul<i8> for U256[src]
impl Mul<i8> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: i8) -> U256[src]
fn mul(self, other: i8) -> U256Performs the * operation.
impl<'a> Mul<&'a i8> for U256[src]
impl<'a> Mul<&'a i8> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: &'a i8) -> U256[src]
fn mul(self, other: &'a i8) -> U256Performs the * operation.
impl<'a> Mul<&'a i8> for &'a U256[src]
impl<'a> Mul<&'a i8> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: &'a i8) -> U256[src]
fn mul(self, other: &'a i8) -> U256Performs the * operation.
impl<'a> Mul<i8> for &'a U256[src]
impl<'a> Mul<i8> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: i8) -> U256[src]
fn mul(self, other: i8) -> U256Performs the * operation.
impl Mul<i16> for U256[src]
impl Mul<i16> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: i16) -> U256[src]
fn mul(self, other: i16) -> U256Performs the * operation.
impl<'a> Mul<&'a i16> for U256[src]
impl<'a> Mul<&'a i16> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: &'a i16) -> U256[src]
fn mul(self, other: &'a i16) -> U256Performs the * operation.
impl<'a> Mul<&'a i16> for &'a U256[src]
impl<'a> Mul<&'a i16> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: &'a i16) -> U256[src]
fn mul(self, other: &'a i16) -> U256Performs the * operation.
impl<'a> Mul<i16> for &'a U256[src]
impl<'a> Mul<i16> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: i16) -> U256[src]
fn mul(self, other: i16) -> U256Performs the * operation.
impl Mul<i64> for U256[src]
impl Mul<i64> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: i64) -> U256[src]
fn mul(self, other: i64) -> U256Performs the * operation.
impl<'a> Mul<&'a i64> for U256[src]
impl<'a> Mul<&'a i64> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: &'a i64) -> U256[src]
fn mul(self, other: &'a i64) -> U256Performs the * operation.
impl<'a> Mul<&'a i64> for &'a U256[src]
impl<'a> Mul<&'a i64> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: &'a i64) -> U256[src]
fn mul(self, other: &'a i64) -> U256Performs the * operation.
impl<'a> Mul<i64> for &'a U256[src]
impl<'a> Mul<i64> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: i64) -> U256[src]
fn mul(self, other: i64) -> U256Performs the * operation.
impl Mul<isize> for U256[src]
impl Mul<isize> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: isize) -> U256[src]
fn mul(self, other: isize) -> U256Performs the * operation.
impl<'a> Mul<&'a isize> for U256[src]
impl<'a> Mul<&'a isize> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: &'a isize) -> U256[src]
fn mul(self, other: &'a isize) -> U256Performs the * operation.
impl<'a> Mul<&'a isize> for &'a U256[src]
impl<'a> Mul<&'a isize> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: &'a isize) -> U256[src]
fn mul(self, other: &'a isize) -> U256Performs the * operation.
impl<'a> Mul<isize> for &'a U256[src]
impl<'a> Mul<isize> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: isize) -> U256[src]
fn mul(self, other: isize) -> U256Performs the * operation.
impl Mul<U256> for U256[src]
impl Mul<U256> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: U256) -> U256[src]
fn mul(self, other: U256) -> U256Performs the * operation.
impl<'a> Mul<&'a U256> for U256[src]
impl<'a> Mul<&'a U256> for U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: &'a U256) -> U256[src]
fn mul(self, other: &'a U256) -> U256Performs the * operation.
impl<'a> Mul<&'a U256> for &'a U256[src]
impl<'a> Mul<&'a U256> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: &'a U256) -> U256[src]
fn mul(self, other: &'a U256) -> U256Performs the * operation.
impl<'a> Mul<U256> for &'a U256[src]
impl<'a> Mul<U256> for &'a U256type Output = U256
The resulting type after applying the * operator.
fn mul(self, other: U256) -> U256[src]
fn mul(self, other: U256) -> U256Performs the * operation.
impl<T> Div<T> for U256 where
T: Into<U256>, [src]
impl<T> Div<T> for U256 where
T: Into<U256>, type Output = U256
The resulting type after applying the / operator.
fn div(self, other: T) -> U256[src]
fn div(self, other: T) -> U256Performs the / operation.
impl<'a, T> Div<T> for &'a U256 where
T: Into<U256>, [src]
impl<'a, T> Div<T> for &'a U256 where
T: Into<U256>, type Output = U256
The resulting type after applying the / operator.
fn div(self, other: T) -> U256[src]
fn div(self, other: T) -> U256Performs the / operation.
impl<T> Rem<T> for U256 where
T: Into<U256> + Copy, [src]
impl<T> Rem<T> for U256 where
T: Into<U256> + Copy, type Output = U256
The resulting type after applying the % operator.
fn rem(self, other: T) -> U256[src]
fn rem(self, other: T) -> U256Performs the % operation.
impl<'a, T> Rem<T> for &'a U256 where
T: Into<U256> + Copy, [src]
impl<'a, T> Rem<T> for &'a U256 where
T: Into<U256> + Copy, type Output = U256
The resulting type after applying the % operator.
fn rem(self, other: T) -> U256[src]
fn rem(self, other: T) -> U256Performs the % operation.
impl AddAssign<U256> for U256[src]
impl AddAssign<U256> for U256fn add_assign(&mut self, other: U256)[src]
fn add_assign(&mut self, other: U256)Performs the += operation.
impl SubAssign<U256> for U256[src]
impl SubAssign<U256> for U256fn sub_assign(&mut self, other: U256)[src]
fn sub_assign(&mut self, other: U256)Performs the -= operation.
impl MulAssign<u32> for U256[src]
impl MulAssign<u32> for U256fn mul_assign(&mut self, other: u32)[src]
fn mul_assign(&mut self, other: u32)Performs the *= operation.
impl MulAssign<u8> for U256[src]
impl MulAssign<u8> for U256fn mul_assign(&mut self, other: u8)[src]
fn mul_assign(&mut self, other: u8)Performs the *= operation.
impl MulAssign<u16> for U256[src]
impl MulAssign<u16> for U256fn mul_assign(&mut self, other: u16)[src]
fn mul_assign(&mut self, other: u16)Performs the *= operation.
impl MulAssign<u64> for U256[src]
impl MulAssign<u64> for U256fn mul_assign(&mut self, other: u64)[src]
fn mul_assign(&mut self, other: u64)Performs the *= operation.
impl MulAssign<usize> for U256[src]
impl MulAssign<usize> for U256fn mul_assign(&mut self, other: usize)[src]
fn mul_assign(&mut self, other: usize)Performs the *= operation.
impl MulAssign<i8> for U256[src]
impl MulAssign<i8> for U256fn mul_assign(&mut self, other: i8)[src]
fn mul_assign(&mut self, other: i8)Performs the *= operation.
impl MulAssign<i16> for U256[src]
impl MulAssign<i16> for U256fn mul_assign(&mut self, other: i16)[src]
fn mul_assign(&mut self, other: i16)Performs the *= operation.
impl MulAssign<i64> for U256[src]
impl MulAssign<i64> for U256fn mul_assign(&mut self, other: i64)[src]
fn mul_assign(&mut self, other: i64)Performs the *= operation.
impl MulAssign<isize> for U256[src]
impl MulAssign<isize> for U256fn mul_assign(&mut self, other: isize)[src]
fn mul_assign(&mut self, other: isize)Performs the *= operation.
impl MulAssign<U256> for U256[src]
impl MulAssign<U256> for U256fn mul_assign(&mut self, other: U256)[src]
fn mul_assign(&mut self, other: U256)Performs the *= operation.
impl<T> DivAssign<T> for U256 where
T: Into<U256>, [src]
impl<T> DivAssign<T> for U256 where
T: Into<U256>, fn div_assign(&mut self, other: T)[src]
fn div_assign(&mut self, other: T)Performs the /= operation.
impl<T> RemAssign<T> for U256 where
T: Into<U256> + Copy, [src]
impl<T> RemAssign<T> for U256 where
T: Into<U256> + Copy, fn rem_assign(&mut self, other: T)[src]
fn rem_assign(&mut self, other: T)Performs the %= operation.
impl Not for U256[src]
impl Not for U256type Output = U256
The resulting type after applying the ! operator.
fn not(self) -> U256[src]
fn not(self) -> U256Performs the unary ! operation.
impl BitAnd<U256> for U256[src]
impl BitAnd<U256> for U256type Output = U256
The resulting type after applying the & operator.
fn bitand(self, other: U256) -> U256[src]
fn bitand(self, other: U256) -> U256Performs the & operation.
impl BitOr<U256> for U256[src]
impl BitOr<U256> for U256type Output = U256
The resulting type after applying the | operator.
fn bitor(self, other: U256) -> U256[src]
fn bitor(self, other: U256) -> U256Performs the | operation.
impl BitXor<U256> for U256[src]
impl BitXor<U256> for U256type Output = U256
The resulting type after applying the ^ operator.
fn bitxor(self, other: U256) -> U256[src]
fn bitxor(self, other: U256) -> U256Performs the ^ operation.
impl<T> Shl<T> for U256 where
T: Into<U256>, [src]
impl<T> Shl<T> for U256 where
T: Into<U256>, type Output = U256
The resulting type after applying the << operator.
fn shl(self, shift: T) -> U256[src]
fn shl(self, shift: T) -> U256Performs the << operation.
impl<'a, T> Shl<T> for &'a U256 where
T: Into<U256>, [src]
impl<'a, T> Shl<T> for &'a U256 where
T: Into<U256>, type Output = U256
The resulting type after applying the << operator.
fn shl(self, shift: T) -> U256[src]
fn shl(self, shift: T) -> U256Performs the << operation.
impl<T> Shr<T> for U256 where
T: Into<U256>, [src]
impl<T> Shr<T> for U256 where
T: Into<U256>, type Output = U256
The resulting type after applying the >> operator.
fn shr(self, shift: T) -> U256[src]
fn shr(self, shift: T) -> U256Performs the >> operation.
impl<'a, T> Shr<T> for &'a U256 where
T: Into<U256>, [src]
impl<'a, T> Shr<T> for &'a U256 where
T: Into<U256>, type Output = U256
The resulting type after applying the >> operator.
fn shr(self, shift: T) -> U256[src]
fn shr(self, shift: T) -> U256Performs the >> operation.
impl<T> ShlAssign<T> for U256 where
T: Into<U256>, [src]
impl<T> ShlAssign<T> for U256 where
T: Into<U256>, fn shl_assign(&mut self, shift: T)[src]
fn shl_assign(&mut self, shift: T)Performs the <<= operation.
impl<T> ShrAssign<T> for U256 where
T: Into<U256>, [src]
impl<T> ShrAssign<T> for U256 where
T: Into<U256>, fn shr_assign(&mut self, shift: T)[src]
fn shr_assign(&mut self, shift: T)Performs the >>= operation.
impl Hash for U256[src]
impl Hash for U256fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)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 Copy for U256[src]
impl Copy for U256impl Default for U256[src]
impl Default for U256impl AsRef<U256> for U256[src]
impl AsRef<U256> for U256Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<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, 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, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn 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