Struct snarkvm_fields::Fp320[][src]

pub struct Fp320<P: Fp320Parameters>(pub BigInteger, _);

Implementations

impl<P: Fp320Parameters> Fp320<P>[src]

pub fn new(element: BigInteger) -> Self[src]

Trait Implementations

impl<'a, P: Fp320Parameters> Add<&'a Fp320<P>> for Fp320<P>[src]

type Output = Self

The resulting type after applying the + operator.

impl<'a, P: Fp320Parameters> AddAssign<&'a Fp320<P>> for Fp320<P>[src]

impl<P: Fp320Parameters> CanonicalDeserialize for Fp320<P>[src]

impl<P: Fp320Parameters> CanonicalDeserializeWithFlags for Fp320<P>[src]

impl<P: Fp320Parameters> CanonicalSerialize for Fp320<P>[src]

impl<P: Fp320Parameters> CanonicalSerializeWithFlags for Fp320<P>[src]

impl<P: Fp320Parameters> Clone for Fp320<P> where
    P: Fp320Parameters
[src]

impl<P: Fp320Parameters> ConstantSerializedSize for Fp320<P>[src]

impl<P: Fp320Parameters> Copy for Fp320<P> where
    P: Fp320Parameters
[src]

impl<P: Fp320Parameters> Debug for Fp320<P>[src]

impl<P: Fp320Parameters> Default for Fp320<P> where
    P: Fp320Parameters
[src]

impl<'de, P: Fp320Parameters> Deserialize<'de> for Fp320<P>[src]

impl<P: Fp320Parameters> Display for Fp320<P>[src]

impl<'a, P: Fp320Parameters> Div<&'a Fp320<P>> for Fp320<P>[src]

type Output = Self

The resulting type after applying the / operator.

impl<'a, P: Fp320Parameters> DivAssign<&'a Fp320<P>> for Fp320<P>[src]

impl<P: Fp320Parameters> Eq for Fp320<P> where
    P: Fp320Parameters
[src]

impl<P: Fp320Parameters> Field for Fp320<P>[src]

impl<P: Fp320Parameters> From<u128> for Fp320<P>[src]

fn from(other: u128) -> Self[src]

Attempts to convert an integer into a field element. Panics if the provided integer is invalid (e.g. larger than the field modulus).

impl<P: Fp320Parameters> From<u16> for Fp320<P>[src]

fn from(other: u16) -> Self[src]

Attempts to convert an integer into a field element. Panics if the provided integer is invalid (e.g. larger than the field modulus).

impl<P: Fp320Parameters> From<u32> for Fp320<P>[src]

fn from(other: u32) -> Self[src]

Attempts to convert an integer into a field element. Panics if the provided integer is invalid (e.g. larger than the field modulus).

impl<P: Fp320Parameters> From<u64> for Fp320<P>[src]

fn from(other: u64) -> Self[src]

Attempts to convert an integer into a field element. Panics if the provided integer is invalid (e.g. larger than the field modulus).

impl<P: Fp320Parameters> From<u8> for Fp320<P>[src]

fn from(other: u8) -> Self[src]

Attempts to convert an integer into a field element. Panics if the provided integer is invalid (e.g. larger than the field modulus).

impl<P: Fp320Parameters> FromBytes for Fp320<P>[src]

impl<P: Fp320Parameters> FromStr for Fp320<P>[src]

type Err = FieldError

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Self, Self::Err>[src]

Interpret a string of numbers as a (congruent) prime field element. Does not accept unnecessary leading zeroes or a blank string.

impl<P: Fp320Parameters> Hash for Fp320<P> where
    P: Fp320Parameters
[src]

impl<P: Fp320Parameters> Into<BigInteger320> for Fp320<P>[src]

impl<'a, P: Fp320Parameters> Mul<&'a Fp320<P>> for Fp320<P>[src]

type Output = Self

The resulting type after applying the * operator.

impl<'a, P: Fp320Parameters> MulAssign<&'a Fp320<P>> for Fp320<P>[src]

impl<P: Fp320Parameters> Neg for Fp320<P>[src]

type Output = Self

The resulting type after applying the - operator.

impl<P: Fp320Parameters> One for Fp320<P>[src]

impl<P: Fp320Parameters> Ord for Fp320<P>[src]

Fp elements are ordered lexicographically.

impl<P: Fp320Parameters> PartialEq<Fp320<P>> for Fp320<P> where
    P: Fp320Parameters
[src]

impl<P: Fp320Parameters> PartialOrd<Fp320<P>> for Fp320<P>[src]

impl<P: Fp320Parameters> PrimeField for Fp320<P>[src]

type BigInteger = BigInteger

type Parameters = P

impl<P: Fp320Parameters> Serialize for Fp320<P>[src]

impl<P: Fp320Parameters> SquareRootField for Fp320<P>[src]

impl<'a, P: Fp320Parameters> Sub<&'a Fp320<P>> for Fp320<P>[src]

type Output = Self

The resulting type after applying the - operator.

impl<'a, P: Fp320Parameters> SubAssign<&'a Fp320<P>> for Fp320<P>[src]

impl<P: Fp320Parameters> ToBytes for Fp320<P>[src]

impl<P: Fp320Parameters> Zero for Fp320<P>[src]

Auto Trait Implementations

impl<P> RefUnwindSafe for Fp320<P> where
    P: RefUnwindSafe

impl<P> Send for Fp320<P>

impl<P> Sync for Fp320<P>

impl<P> Unpin for Fp320<P> where
    P: Unpin

impl<P> UnwindSafe for Fp320<P> where
    P: 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<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.

impl<T> UniformRand for T where
    Standard: Distribution<T>, 
[src]

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