NumRepr

Struct NumRepr 

Source
#[repr(transparent)]
pub struct NumRepr<U: Uint>(pub U);

Tuple Fields§

§0: U

Implementations§

Source§

impl<U: Uint> NumRepr<U>

Source

pub const ONE: Self

Source

pub const ZERO: Self

Source

pub const MAX: Self

Source

pub fn new(n: U) -> Self

Source

pub fn is_zero(self) -> bool

Source

pub fn is_even(&self) -> bool

Source

pub fn is_odd(&self) -> bool

Source

pub fn into_inner(self) -> U::Inner

Source

pub fn as_inner(&self) -> &U::Inner

Source

pub fn as_inner_mut(&mut self) -> &mut U::Inner

Trait Implementations§

Source§

impl<'macro_lifetime_a, 'macro_lifetime_b, U: Uint> Add<&'macro_lifetime_a NumRepr<U>> for &'macro_lifetime_b NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the + operator.
Source§

fn add(self, other: &'macro_lifetime_a NumRepr<U>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'macro_lifetime, U: Uint> Add<&'macro_lifetime NumRepr<U>> for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the + operator.
Source§

fn add(self, other: &'macro_lifetime NumRepr<U>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'macro_lifetime, U: Uint> Add<NumRepr<U>> for &'macro_lifetime NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the + operator.
Source§

fn add(self, other: NumRepr<U>) -> Self::Output

Performs the + operation. Read more
Source§

impl<U: Uint> Add for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the + operator.
Source§

fn add(self, other: NumRepr<U>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'macro_lifetime, U: Uint> AddAssign<&'macro_lifetime NumRepr<U>> for NumRepr<U>

Source§

fn add_assign(&mut self, other: &'macro_lifetime NumRepr<U>)

Performs the += operation. Read more
Source§

impl<U: Uint> AddAssign for NumRepr<U>

Source§

fn add_assign(&mut self, other: NumRepr<U>)

Performs the += operation. Read more
Source§

impl<'macro_lifetime_a, 'macro_lifetime_b, U: Uint> BitAnd<&'macro_lifetime_a NumRepr<U>> for &'macro_lifetime_b NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &'macro_lifetime_a NumRepr<U>) -> Self::Output

Performs the & operation. Read more
Source§

impl<'macro_lifetime, U: Uint> BitAnd<&'macro_lifetime NumRepr<U>> for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &'macro_lifetime NumRepr<U>) -> Self::Output

Performs the & operation. Read more
Source§

impl<'macro_lifetime, U: Uint> BitAnd<NumRepr<U>> for &'macro_lifetime NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: NumRepr<U>) -> Self::Output

Performs the & operation. Read more
Source§

impl<U: Uint> BitAnd for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: NumRepr<U>) -> Self::Output

Performs the & operation. Read more
Source§

impl<'macro_lifetime, U: Uint> BitAndAssign<&'macro_lifetime NumRepr<U>> for NumRepr<U>

Source§

fn bitand_assign(&mut self, other: &'macro_lifetime NumRepr<U>)

Performs the &= operation. Read more
Source§

impl<U: Uint> BitAndAssign for NumRepr<U>

Source§

fn bitand_assign(&mut self, other: NumRepr<U>)

Performs the &= operation. Read more
Source§

impl<I: Uint> BitIterBE for NumRepr<I>

Source§

impl<I: Uint> BitIterLE for NumRepr<I>

Source§

impl<'macro_lifetime_a, 'macro_lifetime_b, U: Uint> BitOr<&'macro_lifetime_a NumRepr<U>> for &'macro_lifetime_b NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &'macro_lifetime_a NumRepr<U>) -> Self::Output

Performs the | operation. Read more
Source§

impl<'macro_lifetime, U: Uint> BitOr<&'macro_lifetime NumRepr<U>> for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &'macro_lifetime NumRepr<U>) -> Self::Output

Performs the | operation. Read more
Source§

impl<'macro_lifetime, U: Uint> BitOr<NumRepr<U>> for &'macro_lifetime NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: NumRepr<U>) -> Self::Output

Performs the | operation. Read more
Source§

impl<U: Uint> BitOr for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: NumRepr<U>) -> Self::Output

Performs the | operation. Read more
Source§

impl<'macro_lifetime, U: Uint> BitOrAssign<&'macro_lifetime NumRepr<U>> for NumRepr<U>

Source§

fn bitor_assign(&mut self, other: &'macro_lifetime NumRepr<U>)

Performs the |= operation. Read more
Source§

impl<U: Uint> BitOrAssign for NumRepr<U>

Source§

fn bitor_assign(&mut self, other: NumRepr<U>)

Performs the |= operation. Read more
Source§

impl<'macro_lifetime_a, 'macro_lifetime_b, U: Uint> BitXor<&'macro_lifetime_a NumRepr<U>> for &'macro_lifetime_b NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &'macro_lifetime_a NumRepr<U>) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'macro_lifetime, U: Uint> BitXor<&'macro_lifetime NumRepr<U>> for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &'macro_lifetime NumRepr<U>) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'macro_lifetime, U: Uint> BitXor<NumRepr<U>> for &'macro_lifetime NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: NumRepr<U>) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<U: Uint> BitXor for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: NumRepr<U>) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'macro_lifetime, U: Uint> BitXorAssign<&'macro_lifetime NumRepr<U>> for NumRepr<U>

Source§

fn bitxor_assign(&mut self, other: &'macro_lifetime NumRepr<U>)

Performs the ^= operation. Read more
Source§

impl<U: Uint> BitXorAssign for NumRepr<U>

Source§

fn bitxor_assign(&mut self, other: NumRepr<U>)

Performs the ^= operation. Read more
Source§

impl<U: Uint> BorshDeserialize for NumRepr<U>

Source§

fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes.
Source§

fn try_from_slice(v: &[u8]) -> Result<Self, Error>

Deserialize this instance from a slice of bytes.
Source§

impl<U: Uint> BorshSerialize for NumRepr<U>

Source§

fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>

Source§

fn try_to_vec(&self) -> Result<Vec<u8>, Error>

Serialize this instance into a vector of bytes.
Source§

impl<U: Clone + Uint> Clone for NumRepr<U>

Source§

fn clone(&self) -> NumRepr<U>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<U: Uint> Debug for NumRepr<U>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, U: Uint> Deserialize<'de> for NumRepr<U>

Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<U: Uint> Display for NumRepr<U>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'macro_lifetime_a, 'macro_lifetime_b, U: Uint> Div<&'macro_lifetime_a NumRepr<U>> for &'macro_lifetime_b NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the / operator.
Source§

fn div(self, other: &'macro_lifetime_a NumRepr<U>) -> Self::Output

Performs the / operation. Read more
Source§

impl<'macro_lifetime, U: Uint> Div<&'macro_lifetime NumRepr<U>> for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the / operator.
Source§

fn div(self, other: &'macro_lifetime NumRepr<U>) -> Self::Output

Performs the / operation. Read more
Source§

impl<'macro_lifetime, U: Uint> Div<NumRepr<U>> for &'macro_lifetime NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the / operator.
Source§

fn div(self, other: NumRepr<U>) -> Self::Output

Performs the / operation. Read more
Source§

impl<U: Uint> Div for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the / operator.
Source§

fn div(self, other: NumRepr<U>) -> Self::Output

Performs the / operation. Read more
Source§

impl<'macro_lifetime, U: Uint> DivAssign<&'macro_lifetime NumRepr<U>> for NumRepr<U>

Source§

fn div_assign(&mut self, other: &'macro_lifetime NumRepr<U>)

Performs the /= operation. Read more
Source§

impl<U: Uint> DivAssign for NumRepr<U>

Source§

fn div_assign(&mut self, other: NumRepr<U>)

Performs the /= operation. Read more
Source§

impl<U: Uint> From<&'static str> for NumRepr<U>

Source§

fn from(s: &'static str) -> Self

Converts to this type from the input type.
Source§

impl<U: Uint> From<bool> for NumRepr<U>

Source§

fn from(value: bool) -> NumRepr<U>

Converts to this type from the input type.
Source§

impl<U: Uint> From<i128> for NumRepr<U>

Source§

fn from(value: i128) -> NumRepr<U>

Converts to this type from the input type.
Source§

impl<U: Uint> From<i16> for NumRepr<U>

Source§

fn from(value: i16) -> NumRepr<U>

Converts to this type from the input type.
Source§

impl<U: Uint> From<i32> for NumRepr<U>

Source§

fn from(value: i32) -> NumRepr<U>

Converts to this type from the input type.
Source§

impl<U: Uint> From<i64> for NumRepr<U>

Source§

fn from(value: i64) -> NumRepr<U>

Converts to this type from the input type.
Source§

impl<U: Uint> From<i8> for NumRepr<U>

Source§

fn from(value: i8) -> NumRepr<U>

Converts to this type from the input type.
Source§

impl<U: Uint> From<u128> for NumRepr<U>

Source§

fn from(value: u128) -> NumRepr<U>

Converts to this type from the input type.
Source§

impl<U: Uint> From<u16> for NumRepr<U>

Source§

fn from(value: u16) -> NumRepr<U>

Converts to this type from the input type.
Source§

impl<U: Uint> From<u32> for NumRepr<U>

Source§

fn from(value: u32) -> NumRepr<U>

Converts to this type from the input type.
Source§

impl<U: Uint> From<u64> for NumRepr<U>

Source§

fn from(value: u64) -> NumRepr<U>

Converts to this type from the input type.
Source§

impl<U: Uint> From<u8> for NumRepr<U>

Source§

fn from(value: u8) -> NumRepr<U>

Converts to this type from the input type.
Source§

impl<U: Uint> FromStr for NumRepr<U>

Source§

type Err = <U as FromStr>::Err

The associated error which can be returned from parsing.
Source§

fn from_str(value: &str) -> Result<NumRepr<U>, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl<U: Uint> Hash for NumRepr<U>

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<U: Uint> LowerHex for NumRepr<U>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'macro_lifetime_a, 'macro_lifetime_b, U: Uint> Mul<&'macro_lifetime_a NumRepr<U>> for &'macro_lifetime_b NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'macro_lifetime_a NumRepr<U>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'macro_lifetime, U: Uint> Mul<&'macro_lifetime NumRepr<U>> for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'macro_lifetime NumRepr<U>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'macro_lifetime_a, 'macro_lifetime_b, U: Uint> Mul<&'macro_lifetime_a u64> for &'macro_lifetime_b NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'macro_lifetime_a u64) -> Self::Output

Performs the * operation. Read more
Source§

impl<'macro_lifetime, U: Uint> Mul<&'macro_lifetime u64> for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'macro_lifetime u64) -> Self::Output

Performs the * operation. Read more
Source§

impl<'macro_lifetime, U: Uint> Mul<NumRepr<U>> for &'macro_lifetime NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the * operator.
Source§

fn mul(self, other: NumRepr<U>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'macro_lifetime, U: Uint> Mul<u64> for &'macro_lifetime NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the * operator.
Source§

fn mul(self, other: u64) -> Self::Output

Performs the * operation. Read more
Source§

impl<U: Uint> Mul<u64> for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the * operator.
Source§

fn mul(self, other: u64) -> Self::Output

Performs the * operation. Read more
Source§

impl<U: Uint> Mul for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the * operator.
Source§

fn mul(self, other: NumRepr<U>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'macro_lifetime, U: Uint> MulAssign<&'macro_lifetime NumRepr<U>> for NumRepr<U>

Source§

fn mul_assign(&mut self, other: &'macro_lifetime NumRepr<U>)

Performs the *= operation. Read more
Source§

impl<'macro_lifetime, U: Uint> MulAssign<&'macro_lifetime u64> for NumRepr<U>

Source§

fn mul_assign(&mut self, other: &'macro_lifetime u64)

Performs the *= operation. Read more
Source§

impl<U: Uint> MulAssign<u64> for NumRepr<U>

Source§

fn mul_assign(&mut self, other: u64)

Performs the *= operation. Read more
Source§

impl<U: Uint> MulAssign for NumRepr<U>

Source§

fn mul_assign(&mut self, other: NumRepr<U>)

Performs the *= operation. Read more
Source§

impl<'macro_lifetime, U: Uint> Neg for &'macro_lifetime NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the - operator.
Source§

fn neg(self) -> NumRepr<U>

Performs the unary - operation. Read more
Source§

impl<U: Uint> Neg for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the - operator.
Source§

fn neg(self) -> NumRepr<U>

Performs the unary - operation. Read more
Source§

impl<'macro_lifetime, U: Uint> Not for &'macro_lifetime NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the ! operator.
Source§

fn not(self) -> NumRepr<U>

Performs the unary ! operation. Read more
Source§

impl<U: Uint> Not for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the ! operator.
Source§

fn not(self) -> NumRepr<U>

Performs the unary ! operation. Read more
Source§

impl<U: Uint> Ord for NumRepr<U>

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<U: Uint> PartialEq for NumRepr<U>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<U: Uint> PartialOrd for NumRepr<U>

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<U: Uint> RefCast for NumRepr<U>

Source§

type From = U

Source§

fn ref_cast(_from: &Self::From) -> &Self

Source§

fn ref_cast_mut(_from: &mut Self::From) -> &mut Self

Source§

impl<'macro_lifetime_a, 'macro_lifetime_b, U: Uint> Rem<&'macro_lifetime_a NumRepr<U>> for &'macro_lifetime_b NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the % operator.
Source§

fn rem(self, other: &'macro_lifetime_a NumRepr<U>) -> Self::Output

Performs the % operation. Read more
Source§

impl<'macro_lifetime, U: Uint> Rem<&'macro_lifetime NumRepr<U>> for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the % operator.
Source§

fn rem(self, other: &'macro_lifetime NumRepr<U>) -> Self::Output

Performs the % operation. Read more
Source§

impl<'macro_lifetime, U: Uint> Rem<NumRepr<U>> for &'macro_lifetime NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the % operator.
Source§

fn rem(self, other: NumRepr<U>) -> Self::Output

Performs the % operation. Read more
Source§

impl<U: Uint> Rem for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the % operator.
Source§

fn rem(self, other: NumRepr<U>) -> Self::Output

Performs the % operation. Read more
Source§

impl<'macro_lifetime, U: Uint> RemAssign<&'macro_lifetime NumRepr<U>> for NumRepr<U>

Source§

fn rem_assign(&mut self, other: &'macro_lifetime NumRepr<U>)

Performs the %= operation. Read more
Source§

impl<U: Uint> RemAssign for NumRepr<U>

Source§

fn rem_assign(&mut self, other: NumRepr<U>)

Performs the %= operation. Read more
Source§

impl<U: Uint> Serialize for NumRepr<U>

Source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl<'macro_lifetime_a, 'macro_lifetime_b, U: Uint> Shl<&'macro_lifetime_a u32> for &'macro_lifetime_b NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the << operator.
Source§

fn shl(self, other: &'macro_lifetime_a u32) -> Self::Output

Performs the << operation. Read more
Source§

impl<'macro_lifetime, U: Uint> Shl<&'macro_lifetime u32> for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the << operator.
Source§

fn shl(self, other: &'macro_lifetime u32) -> Self::Output

Performs the << operation. Read more
Source§

impl<'macro_lifetime, U: Uint> Shl<u32> for &'macro_lifetime NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the << operator.
Source§

fn shl(self, other: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl<U: Uint> Shl<u32> for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the << operator.
Source§

fn shl(self, other: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl<'macro_lifetime, U: Uint> ShlAssign<&'macro_lifetime u32> for NumRepr<U>

Source§

fn shl_assign(&mut self, other: &'macro_lifetime u32)

Performs the <<= operation. Read more
Source§

impl<U: Uint> ShlAssign<u32> for NumRepr<U>

Source§

fn shl_assign(&mut self, other: u32)

Performs the <<= operation. Read more
Source§

impl<'macro_lifetime_a, 'macro_lifetime_b, U: Uint> Shr<&'macro_lifetime_a u32> for &'macro_lifetime_b NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &'macro_lifetime_a u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'macro_lifetime, U: Uint> Shr<&'macro_lifetime u32> for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &'macro_lifetime u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'macro_lifetime, U: Uint> Shr<u32> for &'macro_lifetime NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the >> operator.
Source§

fn shr(self, other: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl<U: Uint> Shr<u32> for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the >> operator.
Source§

fn shr(self, other: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'macro_lifetime, U: Uint> ShrAssign<&'macro_lifetime u32> for NumRepr<U>

Source§

fn shr_assign(&mut self, other: &'macro_lifetime u32)

Performs the >>= operation. Read more
Source§

impl<U: Uint> ShrAssign<u32> for NumRepr<U>

Source§

fn shr_assign(&mut self, other: u32)

Performs the >>= operation. Read more
Source§

impl<'macro_lifetime_a, 'macro_lifetime_b, U: Uint> Sub<&'macro_lifetime_a NumRepr<U>> for &'macro_lifetime_b NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &'macro_lifetime_a NumRepr<U>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'macro_lifetime, U: Uint> Sub<&'macro_lifetime NumRepr<U>> for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &'macro_lifetime NumRepr<U>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'macro_lifetime, U: Uint> Sub<NumRepr<U>> for &'macro_lifetime NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the - operator.
Source§

fn sub(self, other: NumRepr<U>) -> Self::Output

Performs the - operation. Read more
Source§

impl<U: Uint> Sub for NumRepr<U>

Source§

type Output = NumRepr<U>

The resulting type after applying the - operator.
Source§

fn sub(self, other: NumRepr<U>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'macro_lifetime, U: Uint> SubAssign<&'macro_lifetime NumRepr<U>> for NumRepr<U>

Source§

fn sub_assign(&mut self, other: &'macro_lifetime NumRepr<U>)

Performs the -= operation. Read more
Source§

impl<U: Uint> SubAssign for NumRepr<U>

Source§

fn sub_assign(&mut self, other: NumRepr<U>)

Performs the -= operation. Read more
Source§

impl<U: Uint> TryFrom<NumRepr<U>> for bool

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(u: NumRepr<U>) -> Result<bool, &'static str>

Performs the conversion.
Source§

impl<U: Uint> TryFrom<NumRepr<U>> for i128

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(u: NumRepr<U>) -> Result<i128, &'static str>

Performs the conversion.
Source§

impl<U: Uint> TryFrom<NumRepr<U>> for i16

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(u: NumRepr<U>) -> Result<i16, &'static str>

Performs the conversion.
Source§

impl<U: Uint> TryFrom<NumRepr<U>> for i32

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(u: NumRepr<U>) -> Result<i32, &'static str>

Performs the conversion.
Source§

impl<U: Uint> TryFrom<NumRepr<U>> for i64

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(u: NumRepr<U>) -> Result<i64, &'static str>

Performs the conversion.
Source§

impl<U: Uint> TryFrom<NumRepr<U>> for i8

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(u: NumRepr<U>) -> Result<i8, &'static str>

Performs the conversion.
Source§

impl<U: Uint> TryFrom<NumRepr<U>> for u128

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(u: NumRepr<U>) -> Result<u128, &'static str>

Performs the conversion.
Source§

impl<U: Uint> TryFrom<NumRepr<U>> for u16

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(u: NumRepr<U>) -> Result<u16, &'static str>

Performs the conversion.
Source§

impl<U: Uint> TryFrom<NumRepr<U>> for u32

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(u: NumRepr<U>) -> Result<u32, &'static str>

Performs the conversion.
Source§

impl<U: Uint> TryFrom<NumRepr<U>> for u64

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(u: NumRepr<U>) -> Result<u64, &'static str>

Performs the conversion.
Source§

impl<U: Uint> TryFrom<NumRepr<U>> for u8

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(u: NumRepr<U>) -> Result<u8, &'static str>

Performs the conversion.
Source§

impl<U: Copy + Uint> Copy for NumRepr<U>

Source§

impl<U: Uint> Eq for NumRepr<U>

Auto Trait Implementations§

§

impl<U> Freeze for NumRepr<U>
where U: Freeze,

§

impl<U> RefUnwindSafe for NumRepr<U>
where U: RefUnwindSafe,

§

impl<U> Send for NumRepr<U>
where U: Send,

§

impl<U> Sync for NumRepr<U>
where U: Sync,

§

impl<U> Unpin for NumRepr<U>
where U: Unpin,

§

impl<U> UnwindSafe for NumRepr<U>
where U: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<Out, S> FromSeed<S> for Out
where S: SeedBoxGen<Out>,

Source§

fn from_seed(seed: &[u8]) -> Out

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,