Struct ff_uint::Num [−][src]
Implementations
impl<Fp: PrimeField> Num<Fp>[src]
pub const ZERO: Self[src]
pub const ONE: Self[src]
pub const MODULUS: NumRepr<Fp::Inner>[src]
pub const MODULUS_BITS: u32[src]
pub fn is_even(&self) -> bool[src]
pub fn is_odd(&self) -> bool[src]
pub fn double(self) -> Self[src]
pub fn square(self) -> Self[src]
pub fn new(n: Fp) -> Self[src]
pub fn checked_inv(self) -> Option<Self>[src]
pub fn is_zero(self) -> bool[src]
pub fn from_uint(v: NumRepr<Fp::Inner>) -> Option<Self>[src]
pub fn from_uint_reduced(v: NumRepr<Fp::Inner>) -> Self[src]
pub fn from_mont_uint(v: NumRepr<Fp::Inner>) -> Option<Self>[src]
pub fn from_uint_unchecked(v: NumRepr<Fp::Inner>) -> Self[src]
pub fn from_mont_uint_unchecked(v: NumRepr<Fp::Inner>) -> Self[src]
pub fn sqrt(&self) -> Option<Self>[src]
pub fn even_sqrt(&self) -> Option<Self>[src]
pub fn to_uint(&self) -> NumRepr<Fp::Inner>[src]
pub fn to_mont_uint(&self) -> NumRepr<Fp::Inner>[src]
pub fn as_mont_uint(&self) -> &NumRepr<Fp::Inner>[src]
pub fn as_mont_uint_mut(&mut self) -> &mut NumRepr<Fp::Inner>[src]
pub fn to_other<Fq: PrimeField>(&self) -> Option<Num<Fq>>[src]
pub fn to_other_reduced<Fq: PrimeField>(&self) -> Num<Fq>[src]
Trait Implementations
impl<'macro_lifetime, U: PrimeField> Add<&'macro_lifetime Num<U>> for Num<U>[src]
type Output = Num<U>
The resulting type after applying the + operator.
fn add(self, other: &'macro_lifetime Num<U>) -> Self::Output[src]
impl<'macro_lifetime_a, 'macro_lifetime_b, U: PrimeField> Add<&'macro_lifetime_a Num<U>> for &'macro_lifetime_b Num<U>[src]
type Output = Num<U>
The resulting type after applying the + operator.
fn add(self, other: &'macro_lifetime_a Num<U>) -> Self::Output[src]
impl<U: PrimeField> Add<Num<U>> for Num<U>[src]
type Output = Num<U>
The resulting type after applying the + operator.
fn add(self, other: Num<U>) -> Self::Output[src]
impl<'macro_lifetime, U: PrimeField> Add<Num<U>> for &'macro_lifetime Num<U>[src]
type Output = Num<U>
The resulting type after applying the + operator.
fn add(self, other: Num<U>) -> Self::Output[src]
impl<'macro_lifetime, U: PrimeField> AddAssign<&'macro_lifetime Num<U>> for Num<U>[src]
fn add_assign(&mut self, other: &'macro_lifetime Num<U>)[src]
impl<U: PrimeField> AddAssign<Num<U>> for Num<U>[src]
fn add_assign(&mut self, other: Num<U>)[src]
impl<Fp: PrimeField> BitIterBE for Num<Fp>[src]
type Iter = BitIteratorBE<Fp::Inner>
fn bit_iter_be(&self) -> Self::Iter[src]
impl<Fp: PrimeField> BitIterLE for Num<Fp>[src]
type Iter = BitIteratorLE<Fp::Inner>
fn bit_iter_le(&self) -> Self::Iter[src]
impl<Fp: PrimeField> BorshDeserialize for Num<Fp>[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<Fp: PrimeField> BorshSerialize for Num<Fp>[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<Fp: Clone + PrimeField> Clone for Num<Fp>[src]
impl<Fp: Copy + PrimeField> Copy for Num<Fp>[src]
impl<Fp: PrimeField> Debug for Num<Fp>[src]
impl<'de, Fp: PrimeField> Deserialize<'de> for Num<Fp>[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>[src]
impl<Fp: PrimeField> Display for Num<Fp>[src]
impl<'macro_lifetime, U: PrimeField> Div<&'macro_lifetime Num<U>> for Num<U>[src]
type Output = Num<U>
The resulting type after applying the / operator.
fn div(self, other: &'macro_lifetime Num<U>) -> Self::Output[src]
impl<'macro_lifetime_a, 'macro_lifetime_b, U: PrimeField> Div<&'macro_lifetime_a Num<U>> for &'macro_lifetime_b Num<U>[src]
type Output = Num<U>
The resulting type after applying the / operator.
fn div(self, other: &'macro_lifetime_a Num<U>) -> Self::Output[src]
impl<U: PrimeField> Div<Num<U>> for Num<U>[src]
type Output = Num<U>
The resulting type after applying the / operator.
fn div(self, other: Num<U>) -> Self::Output[src]
impl<'macro_lifetime, U: PrimeField> Div<Num<U>> for &'macro_lifetime Num<U>[src]
type Output = Num<U>
The resulting type after applying the / operator.
fn div(self, other: Num<U>) -> Self::Output[src]
impl<'macro_lifetime, U: PrimeField> DivAssign<&'macro_lifetime Num<U>> for Num<U>[src]
fn div_assign(&mut self, other: &'macro_lifetime Num<U>)[src]
impl<U: PrimeField> DivAssign<Num<U>> for Num<U>[src]
fn div_assign(&mut self, other: Num<U>)[src]
impl<Fp: PrimeField> Eq for Num<Fp>[src]
impl<Fp: PrimeField> From<&'static str> for Num<Fp>[src]
impl<Fp: PrimeField> From<bool> for Num<Fp>[src]
impl<Fp: PrimeField> From<i128> for Num<Fp>[src]
impl<Fp: PrimeField> From<i16> for Num<Fp>[src]
impl<Fp: PrimeField> From<i32> for Num<Fp>[src]
impl<Fp: PrimeField> From<i64> for Num<Fp>[src]
impl<Fp: PrimeField> From<i8> for Num<Fp>[src]
impl<Fp: PrimeField> From<u128> for Num<Fp>[src]
impl<Fp: PrimeField> From<u16> for Num<Fp>[src]
impl<Fp: PrimeField> From<u32> for Num<Fp>[src]
impl<Fp: PrimeField> From<u64> for Num<Fp>[src]
impl<Fp: PrimeField> From<u8> for Num<Fp>[src]
impl<Fp: PrimeField> FromStr for Num<Fp>[src]
type Err = <Fp as FromStr>::Err
The associated error which can be returned from parsing.
fn from_str(value: &str) -> Result<Num<Fp>, Self::Err>[src]
impl<'macro_lifetime, U: PrimeField> Mul<&'macro_lifetime Num<U>> for Num<U>[src]
type Output = Num<U>
The resulting type after applying the * operator.
fn mul(self, other: &'macro_lifetime Num<U>) -> Self::Output[src]
impl<'macro_lifetime_a, 'macro_lifetime_b, U: PrimeField> Mul<&'macro_lifetime_a Num<U>> for &'macro_lifetime_b Num<U>[src]
type Output = Num<U>
The resulting type after applying the * operator.
fn mul(self, other: &'macro_lifetime_a Num<U>) -> Self::Output[src]
impl<U: PrimeField> Mul<Num<U>> for Num<U>[src]
type Output = Num<U>
The resulting type after applying the * operator.
fn mul(self, other: Num<U>) -> Self::Output[src]
impl<'macro_lifetime, U: PrimeField> Mul<Num<U>> for &'macro_lifetime Num<U>[src]
type Output = Num<U>
The resulting type after applying the * operator.
fn mul(self, other: Num<U>) -> Self::Output[src]
impl<'macro_lifetime, U: PrimeField> MulAssign<&'macro_lifetime Num<U>> for Num<U>[src]
fn mul_assign(&mut self, other: &'macro_lifetime Num<U>)[src]
impl<U: PrimeField> MulAssign<Num<U>> for Num<U>[src]
fn mul_assign(&mut self, other: Num<U>)[src]
impl<U: PrimeField> Neg for Num<U>[src]
impl<'macro_lifetime, U: PrimeField> Neg for &'macro_lifetime Num<U>[src]
impl<Fp: PrimeField> PartialEq<Num<Fp>> for Num<Fp>[src]
impl<Fp: PrimeField> RefCast for Num<Fp>[src]
type From = Fp
fn ref_cast(_from: &Self::From) -> &Self[src]
fn ref_cast_mut(_from: &mut Self::From) -> &mut Self[src]
impl<Fp: PrimeField> Serialize for Num<Fp>[src]
impl<'macro_lifetime, U: PrimeField> Sub<&'macro_lifetime Num<U>> for Num<U>[src]
type Output = Num<U>
The resulting type after applying the - operator.
fn sub(self, other: &'macro_lifetime Num<U>) -> Self::Output[src]
impl<'macro_lifetime_a, 'macro_lifetime_b, U: PrimeField> Sub<&'macro_lifetime_a Num<U>> for &'macro_lifetime_b Num<U>[src]
type Output = Num<U>
The resulting type after applying the - operator.
fn sub(self, other: &'macro_lifetime_a Num<U>) -> Self::Output[src]
impl<U: PrimeField> Sub<Num<U>> for Num<U>[src]
type Output = Num<U>
The resulting type after applying the - operator.
fn sub(self, other: Num<U>) -> Self::Output[src]
impl<'macro_lifetime, U: PrimeField> Sub<Num<U>> for &'macro_lifetime Num<U>[src]
type Output = Num<U>
The resulting type after applying the - operator.
fn sub(self, other: Num<U>) -> Self::Output[src]
impl<'macro_lifetime, U: PrimeField> SubAssign<&'macro_lifetime Num<U>> for Num<U>[src]
fn sub_assign(&mut self, other: &'macro_lifetime Num<U>)[src]
impl<U: PrimeField> SubAssign<Num<U>> for Num<U>[src]
fn sub_assign(&mut self, other: Num<U>)[src]
Auto Trait Implementations
impl<Fp> RefUnwindSafe for Num<Fp> where
Fp: RefUnwindSafe,
Fp: RefUnwindSafe,
impl<Fp> Send for Num<Fp> where
Fp: Send,
Fp: Send,
impl<Fp> Sync for Num<Fp> where
Fp: Sync,
Fp: Sync,
impl<Fp> Unpin for Num<Fp> where
Fp: Unpin,
Fp: Unpin,
impl<Fp> UnwindSafe for Num<Fp> where
Fp: UnwindSafe,
Fp: 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>,