Struct snarkvm_fields::Fp3[][src]

pub struct Fp3<P: Fp3Parameters> {
    pub c0: P::Fp,
    pub c1: P::Fp,
    pub c2: P::Fp,
    // some fields omitted
}

Fields

c0: P::Fpc1: P::Fpc2: P::Fp

Implementations

impl<P: Fp3Parameters> Fp3<P>[src]

pub fn new(c0: P::Fp, c1: P::Fp, c2: P::Fp) -> Self[src]

pub fn mul_assign_by_fp(&mut self, value: &P::Fp)[src]

pub fn norm(&self) -> P::Fp[src]

pub fn qnr_to_t() -> Self[src]

Trait Implementations

impl<'a, P: Fp3Parameters> Add<&'a Fp3<P>> for Fp3<P>[src]

type Output = Self

The resulting type after applying the + operator.

impl<'a, P: Fp3Parameters> AddAssign<&'a Fp3<P>> for Fp3<P>[src]

impl<P: Fp3Parameters> CanonicalDeserialize for Fp3<P>[src]

impl<P: Fp3Parameters> CanonicalDeserializeWithFlags for Fp3<P>[src]

impl<P: Fp3Parameters> CanonicalSerialize for Fp3<P>[src]

impl<P: Fp3Parameters> CanonicalSerializeWithFlags for Fp3<P>[src]

impl<P: Fp3Parameters> Clone for Fp3<P> where
    P: Fp3Parameters
[src]

impl<P: Fp3Parameters> ConstantSerializedSize for Fp3<P>[src]

impl<P: Fp3Parameters> Copy for Fp3<P> where
    P: Fp3Parameters
[src]

impl<P: Fp3Parameters> Debug for Fp3<P> where
    P: Fp3Parameters
[src]

impl<P: Fp3Parameters> Default for Fp3<P> where
    P: Fp3Parameters
[src]

impl<'de, P: Fp3Parameters> Deserialize<'de> for Fp3<P> where
    P::Fp: Deserialize<'de>,
    P::Fp: Deserialize<'de>,
    P::Fp: Deserialize<'de>, 
[src]

impl<P: Fp3Parameters> Display for Fp3<P>[src]

impl<'a, P: Fp3Parameters> Div<&'a Fp3<P>> for Fp3<P>[src]

type Output = Self

The resulting type after applying the / operator.

impl<'a, P: Fp3Parameters> DivAssign<&'a Fp3<P>> for Fp3<P>[src]

impl<P: Fp3Parameters> Eq for Fp3<P> where
    P: Fp3Parameters
[src]

impl<P: Fp3Parameters> Field for Fp3<P>[src]

impl<P: Fp3Parameters> From<u128> for Fp3<P>[src]

impl<P: Fp3Parameters> From<u16> for Fp3<P>[src]

impl<P: Fp3Parameters> From<u32> for Fp3<P>[src]

impl<P: Fp3Parameters> From<u64> for Fp3<P>[src]

impl<P: Fp3Parameters> From<u8> for Fp3<P>[src]

impl<P: Fp3Parameters> FromBytes for Fp3<P>[src]

impl<P: Fp3Parameters> FromStr for Fp3<P>[src]

type Err = ()

The associated error which can be returned from parsing.

impl<P: Fp3Parameters> Hash for Fp3<P> where
    P: Fp3Parameters
[src]

impl<'a, P: Fp3Parameters> Mul<&'a Fp3<P>> for Fp3<P>[src]

type Output = Self

The resulting type after applying the * operator.

impl<'a, P: Fp3Parameters> MulAssign<&'a Fp3<P>> for Fp3<P>[src]

impl<P: Fp3Parameters> Neg for Fp3<P>[src]

type Output = Self

The resulting type after applying the - operator.

impl<P: Fp3Parameters> One for Fp3<P>[src]

impl<P: Fp3Parameters> Ord for Fp3<P>[src]

Fp3 elements are ordered lexicographically.

impl<P: Fp3Parameters> PartialEq<Fp3<P>> for Fp3<P> where
    P: Fp3Parameters
[src]

impl<P: Fp3Parameters> PartialOrd<Fp3<P>> for Fp3<P>[src]

impl<P: Fp3Parameters> Serialize for Fp3<P> where
    P::Fp: Serialize,
    P::Fp: Serialize,
    P::Fp: Serialize
[src]

impl<P: Fp3Parameters> SquareRootField for Fp3<P>[src]

fn legendre(&self) -> LegendreSymbol[src]

Returns the Legendre symbol.

fn sqrt(&self) -> Option<Self>[src]

Returns the square root of self, if it exists.

fn sqrt_in_place(&mut self) -> Option<&mut Self>[src]

Sets self to be the square root of self, if it exists.

impl<'a, P: Fp3Parameters> Sub<&'a Fp3<P>> for Fp3<P>[src]

type Output = Self

The resulting type after applying the - operator.

impl<'a, P: Fp3Parameters> SubAssign<&'a Fp3<P>> for Fp3<P>[src]

impl<P: Fp3Parameters> ToBytes for Fp3<P>[src]

impl<P: Fp3Parameters> Zero for Fp3<P>[src]

Auto Trait Implementations

impl<P> RefUnwindSafe for Fp3<P> where
    P: RefUnwindSafe,
    <P as Fp3Parameters>::Fp: RefUnwindSafe

impl<P> Send for Fp3<P>

impl<P> Sync for Fp3<P>

impl<P> Unpin for Fp3<P> where
    P: Unpin,
    <P as Fp3Parameters>::Fp: Unpin

impl<P> UnwindSafe for Fp3<P> where
    P: UnwindSafe,
    <P as Fp3Parameters>::Fp: 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>,