Struct ff_uint::NumRepr [−][src]
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.
fn add(self, other: &'macro_lifetime NumRepr<U>) -> Self::Output[src]
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.
fn add(self, other: &'macro_lifetime_a NumRepr<U>) -> Self::Output[src]
impl<U: Uint> Add<NumRepr<U>> for NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the + operator.
fn add(self, other: NumRepr<U>) -> Self::Output[src]
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.
fn add(self, other: NumRepr<U>) -> Self::Output[src]
impl<'macro_lifetime, U: Uint> AddAssign<&'macro_lifetime NumRepr<U>> for NumRepr<U>[src]
fn add_assign(&mut self, other: &'macro_lifetime NumRepr<U>)[src]
impl<U: Uint> AddAssign<NumRepr<U>> for NumRepr<U>[src]
fn add_assign(&mut self, other: 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.
fn bitand(self, other: &'macro_lifetime NumRepr<U>) -> Self::Output[src]
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.
fn bitand(self, other: &'macro_lifetime_a NumRepr<U>) -> Self::Output[src]
impl<U: Uint> BitAnd<NumRepr<U>> for NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the & operator.
fn bitand(self, other: NumRepr<U>) -> Self::Output[src]
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.
fn bitand(self, other: NumRepr<U>) -> Self::Output[src]
impl<'macro_lifetime, U: Uint> BitAndAssign<&'macro_lifetime NumRepr<U>> for NumRepr<U>[src]
fn bitand_assign(&mut self, other: &'macro_lifetime NumRepr<U>)[src]
impl<U: Uint> BitAndAssign<NumRepr<U>> for NumRepr<U>[src]
fn bitand_assign(&mut self, other: NumRepr<U>)[src]
impl<I: Uint> BitIterBE for NumRepr<I>[src]
type Iter = BitIteratorBE<I>
fn bit_iter_be(&self) -> Self::Iter[src]
impl<I: Uint> BitIterLE for NumRepr<I>[src]
type Iter = BitIteratorLE<I>
fn bit_iter_le(&self) -> Self::Iter[src]
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.
fn bitor(self, other: &'macro_lifetime NumRepr<U>) -> Self::Output[src]
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.
fn bitor(self, other: &'macro_lifetime_a NumRepr<U>) -> Self::Output[src]
impl<U: Uint> BitOr<NumRepr<U>> for NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the | operator.
fn bitor(self, other: NumRepr<U>) -> Self::Output[src]
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.
fn bitor(self, other: NumRepr<U>) -> Self::Output[src]
impl<'macro_lifetime, U: Uint> BitOrAssign<&'macro_lifetime NumRepr<U>> for NumRepr<U>[src]
fn bitor_assign(&mut self, other: &'macro_lifetime NumRepr<U>)[src]
impl<U: Uint> BitOrAssign<NumRepr<U>> for NumRepr<U>[src]
fn bitor_assign(&mut self, other: 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.
fn bitxor(self, other: &'macro_lifetime NumRepr<U>) -> Self::Output[src]
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.
fn bitxor(self, other: &'macro_lifetime_a NumRepr<U>) -> Self::Output[src]
impl<U: Uint> BitXor<NumRepr<U>> for NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the ^ operator.
fn bitxor(self, other: NumRepr<U>) -> Self::Output[src]
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.
fn bitxor(self, other: NumRepr<U>) -> Self::Output[src]
impl<'macro_lifetime, U: Uint> BitXorAssign<&'macro_lifetime NumRepr<U>> for NumRepr<U>[src]
fn bitxor_assign(&mut self, other: &'macro_lifetime NumRepr<U>)[src]
impl<U: Uint> BitXorAssign<NumRepr<U>> for NumRepr<U>[src]
fn bitxor_assign(&mut self, other: NumRepr<U>)[src]
impl<U: Uint> BorshDeserialize for NumRepr<U>[src]
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>[src]
pub fn try_from_slice(v: &[u8]) -> Result<Self, Error>[src]
pub fn is_u8() -> bool[src]
impl<U: Uint> BorshSerialize for NumRepr<U>[src]
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>[src]
pub fn try_to_vec(&self) -> Result<Vec<u8, Global>, Error>[src]
pub fn is_u8() -> bool[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]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>[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.
fn div(self, other: &'macro_lifetime NumRepr<U>) -> Self::Output[src]
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.
fn div(self, other: &'macro_lifetime_a NumRepr<U>) -> Self::Output[src]
impl<U: Uint> Div<NumRepr<U>> for NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the / operator.
fn div(self, other: NumRepr<U>) -> Self::Output[src]
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.
fn div(self, other: NumRepr<U>) -> Self::Output[src]
impl<'macro_lifetime, U: Uint> DivAssign<&'macro_lifetime NumRepr<U>> for NumRepr<U>[src]
fn div_assign(&mut self, other: &'macro_lifetime NumRepr<U>)[src]
impl<U: Uint> DivAssign<NumRepr<U>> for NumRepr<U>[src]
fn div_assign(&mut self, other: 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.
fn from_str(value: &str) -> Result<NumRepr<U>, Self::Err>[src]
impl<U: Uint> Hash for NumRepr<U>[src]
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<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.
fn mul(self, other: &'macro_lifetime NumRepr<U>) -> Self::Output[src]
impl<'macro_lifetime, U: Uint> Mul<&'macro_lifetime u64> for NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the * operator.
fn mul(self, other: &'macro_lifetime u64) -> Self::Output[src]
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.
fn mul(self, other: &'macro_lifetime_a NumRepr<U>) -> Self::Output[src]
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.
fn mul(self, other: &'macro_lifetime_a u64) -> Self::Output[src]
impl<U: Uint> Mul<NumRepr<U>> for NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the * operator.
fn mul(self, other: NumRepr<U>) -> Self::Output[src]
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.
fn mul(self, other: NumRepr<U>) -> Self::Output[src]
impl<U: Uint> Mul<u64> for NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the * operator.
fn mul(self, other: u64) -> Self::Output[src]
impl<'macro_lifetime, U: Uint> Mul<u64> for &'macro_lifetime NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the * operator.
fn mul(self, other: u64) -> Self::Output[src]
impl<'macro_lifetime, U: Uint> MulAssign<&'macro_lifetime NumRepr<U>> for NumRepr<U>[src]
fn mul_assign(&mut self, other: &'macro_lifetime NumRepr<U>)[src]
impl<'macro_lifetime, U: Uint> MulAssign<&'macro_lifetime u64> for NumRepr<U>[src]
fn mul_assign(&mut self, other: &'macro_lifetime u64)[src]
impl<U: Uint> MulAssign<NumRepr<U>> for NumRepr<U>[src]
fn mul_assign(&mut self, other: NumRepr<U>)[src]
impl<U: Uint> MulAssign<u64> for NumRepr<U>[src]
fn mul_assign(&mut self, other: u64)[src]
impl<U: Uint> Neg for NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the - operator.
fn neg(self) -> NumRepr<U>[src]
impl<'macro_lifetime, U: Uint> Neg for &'macro_lifetime NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the - operator.
fn neg(self) -> NumRepr<U>[src]
impl<U: Uint> Not for NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the ! operator.
fn not(self) -> NumRepr<U>[src]
impl<'macro_lifetime, U: Uint> Not for &'macro_lifetime NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the ! operator.
fn not(self) -> NumRepr<U>[src]
impl<U: Uint> Ord for NumRepr<U>[src]
fn cmp(&self, other: &Self) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl<U: Uint> PartialEq<NumRepr<U>> for NumRepr<U>[src]
impl<U: Uint> PartialOrd<NumRepr<U>> for NumRepr<U>[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<U: Uint> RefCast for NumRepr<U>[src]
type From = U
fn ref_cast(_from: &Self::From) -> &Self[src]
fn ref_cast_mut(_from: &mut Self::From) -> &mut Self[src]
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.
fn rem(self, other: &'macro_lifetime NumRepr<U>) -> Self::Output[src]
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.
fn rem(self, other: &'macro_lifetime_a NumRepr<U>) -> Self::Output[src]
impl<U: Uint> Rem<NumRepr<U>> for NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the % operator.
fn rem(self, other: NumRepr<U>) -> Self::Output[src]
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.
fn rem(self, other: NumRepr<U>) -> Self::Output[src]
impl<'macro_lifetime, U: Uint> RemAssign<&'macro_lifetime NumRepr<U>> for NumRepr<U>[src]
fn rem_assign(&mut self, other: &'macro_lifetime NumRepr<U>)[src]
impl<U: Uint> RemAssign<NumRepr<U>> for NumRepr<U>[src]
fn rem_assign(&mut self, other: 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.
fn shl(self, other: &'macro_lifetime u32) -> Self::Output[src]
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.
fn shl(self, other: &'macro_lifetime_a u32) -> Self::Output[src]
impl<U: Uint> Shl<u32> for NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the << operator.
fn shl(self, other: u32) -> Self::Output[src]
impl<'macro_lifetime, U: Uint> Shl<u32> for &'macro_lifetime NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the << operator.
fn shl(self, other: u32) -> Self::Output[src]
impl<'macro_lifetime, U: Uint> ShlAssign<&'macro_lifetime u32> for NumRepr<U>[src]
fn shl_assign(&mut self, other: &'macro_lifetime u32)[src]
impl<U: Uint> ShlAssign<u32> for NumRepr<U>[src]
fn shl_assign(&mut self, other: u32)[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.
fn shr(self, other: &'macro_lifetime u32) -> Self::Output[src]
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.
fn shr(self, other: &'macro_lifetime_a u32) -> Self::Output[src]
impl<U: Uint> Shr<u32> for NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the >> operator.
fn shr(self, other: u32) -> Self::Output[src]
impl<'macro_lifetime, U: Uint> Shr<u32> for &'macro_lifetime NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the >> operator.
fn shr(self, other: u32) -> Self::Output[src]
impl<'macro_lifetime, U: Uint> ShrAssign<&'macro_lifetime u32> for NumRepr<U>[src]
fn shr_assign(&mut self, other: &'macro_lifetime u32)[src]
impl<U: Uint> ShrAssign<u32> for NumRepr<U>[src]
fn shr_assign(&mut self, other: u32)[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.
fn sub(self, other: &'macro_lifetime NumRepr<U>) -> Self::Output[src]
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.
fn sub(self, other: &'macro_lifetime_a NumRepr<U>) -> Self::Output[src]
impl<U: Uint> Sub<NumRepr<U>> for NumRepr<U>[src]
type Output = NumRepr<U>
The resulting type after applying the - operator.
fn sub(self, other: NumRepr<U>) -> Self::Output[src]
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.
fn sub(self, other: NumRepr<U>) -> Self::Output[src]
impl<'macro_lifetime, U: Uint> SubAssign<&'macro_lifetime NumRepr<U>> for NumRepr<U>[src]
fn sub_assign(&mut self, other: &'macro_lifetime NumRepr<U>)[src]
impl<U: Uint> SubAssign<NumRepr<U>> for NumRepr<U>[src]
fn sub_assign(&mut self, other: NumRepr<U>)[src]
Auto Trait Implementations
impl<U> RefUnwindSafe for NumRepr<U> where
U: RefUnwindSafe,
U: RefUnwindSafe,
impl<U> Send for NumRepr<U> where
U: Send,
U: Send,
impl<U> Sync for NumRepr<U> where
U: Sync,
U: Sync,
impl<U> Unpin for NumRepr<U> where
U: Unpin,
U: Unpin,
impl<U> UnwindSafe for NumRepr<U> where
U: UnwindSafe,
U: UnwindSafe,
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<Out, S> FromSeed<S> for Out where
S: SeedBoxGen<Out>, [src]
S: SeedBoxGen<Out>,
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>,