Struct ff_uint::NumRepr[][src]

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

Implementations

impl<U: Uint> NumRepr<U>[src]

pub const ONE: Self[src]

pub const ZERO: Self[src]

pub const MAX: Self[src]

pub fn new(n: U) -> Self[src]

pub fn is_zero(self) -> bool[src]

pub fn is_even(&self) -> bool[src]

pub fn is_odd(&self) -> bool[src]

pub fn into_inner(self) -> U::Inner[src]

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

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

Trait Implementations

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

type Output = NumRepr<U>

The resulting type after applying the + operator.

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

type Output = NumRepr<U>

The resulting type after applying the + operator.

impl<U: Uint> Add<NumRepr<U>> for NumRepr<U>[src]

type Output = NumRepr<U>

The resulting type after applying the + operator.

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

type Output = NumRepr<U>

The resulting type after applying the + operator.

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

impl<U: Uint> AddAssign<NumRepr<U>> for NumRepr<U>[src]

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

type Output = NumRepr<U>

The resulting type after applying the & operator.

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

type Output = NumRepr<U>

The resulting type after applying the & operator.

impl<U: Uint> BitAnd<NumRepr<U>> for NumRepr<U>[src]

type Output = NumRepr<U>

The resulting type after applying the & operator.

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

type Output = NumRepr<U>

The resulting type after applying the & operator.

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

impl<U: Uint> BitAndAssign<NumRepr<U>> for NumRepr<U>[src]

impl<I: Uint> BitIterBE for NumRepr<I>[src]

type Iter = BitIteratorBE<I>

impl<I: Uint> BitIterLE for NumRepr<I>[src]

type Iter = BitIteratorLE<I>

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

type Output = NumRepr<U>

The resulting type after applying the | operator.

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

type Output = NumRepr<U>

The resulting type after applying the | operator.

impl<U: Uint> BitOr<NumRepr<U>> for NumRepr<U>[src]

type Output = NumRepr<U>

The resulting type after applying the | operator.

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

type Output = NumRepr<U>

The resulting type after applying the | operator.

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

impl<U: Uint> BitOrAssign<NumRepr<U>> for NumRepr<U>[src]

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

type Output = NumRepr<U>

The resulting type after applying the ^ operator.

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

type Output = NumRepr<U>

The resulting type after applying the ^ operator.

impl<U: Uint> BitXor<NumRepr<U>> for NumRepr<U>[src]

type Output = NumRepr<U>

The resulting type after applying the ^ operator.

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

type Output = NumRepr<U>

The resulting type after applying the ^ operator.

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

impl<U: Uint> BitXorAssign<NumRepr<U>> for NumRepr<U>[src]

impl<U: Uint> BorshDeserialize for NumRepr<U>[src]

impl<U: Uint> BorshSerialize for NumRepr<U>[src]

impl<U: Clone + Uint> Clone for NumRepr<U>[src]

impl<U: Copy + Uint> Copy for NumRepr<U>[src]

impl<U: Uint> Debug for NumRepr<U>[src]

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

impl<U: Uint> Display for NumRepr<U>[src]

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

type Output = NumRepr<U>

The resulting type after applying the / operator.

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

type Output = NumRepr<U>

The resulting type after applying the / operator.

impl<U: Uint> Div<NumRepr<U>> for NumRepr<U>[src]

type Output = NumRepr<U>

The resulting type after applying the / operator.

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

type Output = NumRepr<U>

The resulting type after applying the / operator.

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

impl<U: Uint> DivAssign<NumRepr<U>> for NumRepr<U>[src]

impl<U: Uint> Eq for NumRepr<U>[src]

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

impl<U: Uint> From<bool> for NumRepr<U>[src]

impl<U: Uint> From<i128> for NumRepr<U>[src]

impl<U: Uint> From<i16> for NumRepr<U>[src]

impl<U: Uint> From<i32> for NumRepr<U>[src]

impl<U: Uint> From<i64> for NumRepr<U>[src]

impl<U: Uint> From<i8> for NumRepr<U>[src]

impl<U: Uint> From<u128> for NumRepr<U>[src]

impl<U: Uint> From<u16> for NumRepr<U>[src]

impl<U: Uint> From<u32> for NumRepr<U>[src]

impl<U: Uint> From<u64> for NumRepr<U>[src]

impl<U: Uint> From<u8> for NumRepr<U>[src]

impl<U: Uint> FromStr for NumRepr<U>[src]

type Err = <U as FromStr>::Err

The associated error which can be returned from parsing.

impl<U: Uint> Hash for NumRepr<U>[src]

impl<U: Uint> LowerHex for NumRepr<U>[src]

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

type Output = NumRepr<U>

The resulting type after applying the * operator.

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

type Output = NumRepr<U>

The resulting type after applying the * operator.

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

type Output = NumRepr<U>

The resulting type after applying the * operator.

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

type Output = NumRepr<U>

The resulting type after applying the * operator.

impl<U: Uint> Mul<NumRepr<U>> for NumRepr<U>[src]

type Output = NumRepr<U>

The resulting type after applying the * operator.

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

type Output = NumRepr<U>

The resulting type after applying the * operator.

impl<U: Uint> Mul<u64> for NumRepr<U>[src]

type Output = NumRepr<U>

The resulting type after applying the * operator.

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

type Output = NumRepr<U>

The resulting type after applying the * operator.

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

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

impl<U: Uint> MulAssign<NumRepr<U>> for NumRepr<U>[src]

impl<U: Uint> MulAssign<u64> for NumRepr<U>[src]

impl<U: Uint> Neg for NumRepr<U>[src]

type Output = NumRepr<U>

The resulting type after applying the - operator.

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

type Output = NumRepr<U>

The resulting type after applying the - operator.

impl<U: Uint> Not for NumRepr<U>[src]

type Output = NumRepr<U>

The resulting type after applying the ! operator.

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

type Output = NumRepr<U>

The resulting type after applying the ! operator.

impl<U: Uint> Ord for NumRepr<U>[src]

impl<U: Uint> PartialEq<NumRepr<U>> for NumRepr<U>[src]

impl<U: Uint> PartialOrd<NumRepr<U>> for NumRepr<U>[src]

impl<U: Uint> RefCast for NumRepr<U>[src]

type From = U

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

type Output = NumRepr<U>

The resulting type after applying the % operator.

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

type Output = NumRepr<U>

The resulting type after applying the % operator.

impl<U: Uint> Rem<NumRepr<U>> for NumRepr<U>[src]

type Output = NumRepr<U>

The resulting type after applying the % operator.

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

type Output = NumRepr<U>

The resulting type after applying the % operator.

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

impl<U: Uint> RemAssign<NumRepr<U>> for NumRepr<U>[src]

impl<U: Uint> Serialize for NumRepr<U>[src]

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

type Output = NumRepr<U>

The resulting type after applying the << operator.

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

type Output = NumRepr<U>

The resulting type after applying the << operator.

impl<U: Uint> Shl<u32> for NumRepr<U>[src]

type Output = NumRepr<U>

The resulting type after applying the << operator.

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

type Output = NumRepr<U>

The resulting type after applying the << operator.

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

impl<U: Uint> ShlAssign<u32> for NumRepr<U>[src]

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

type Output = NumRepr<U>

The resulting type after applying the >> operator.

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

type Output = NumRepr<U>

The resulting type after applying the >> operator.

impl<U: Uint> Shr<u32> for NumRepr<U>[src]

type Output = NumRepr<U>

The resulting type after applying the >> operator.

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

type Output = NumRepr<U>

The resulting type after applying the >> operator.

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

impl<U: Uint> ShrAssign<u32> for NumRepr<U>[src]

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

type Output = NumRepr<U>

The resulting type after applying the - operator.

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

type Output = NumRepr<U>

The resulting type after applying the - operator.

impl<U: Uint> Sub<NumRepr<U>> for NumRepr<U>[src]

type Output = NumRepr<U>

The resulting type after applying the - operator.

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

type Output = NumRepr<U>

The resulting type after applying the - operator.

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

impl<U: Uint> SubAssign<NumRepr<U>> for NumRepr<U>[src]

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<Out, S> FromSeed<S> for Out where
    S: SeedBoxGen<Out>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.