Struct snarkvm_wasm::Fp3[][src]

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

Fields

c0: <P as Fp3Parameters>::Fpc1: <P as Fp3Parameters>::Fpc2: <P as Fp3Parameters>::Fp

Implementations

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

pub fn new(
    c0: <P as Fp3Parameters>::Fp,
    c1: <P as Fp3Parameters>::Fp,
    c2: <P as Fp3Parameters>::Fp
) -> Fp3<P>
[src]

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

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

pub fn qnr_to_t() -> Fp3<P>[src]

Trait Implementations

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

type Output = Fp3<P>

The resulting type after applying the + operator.

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

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

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

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

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

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

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

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

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

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

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

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

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

type Output = Fp3<P>

The resulting type after applying the / operator.

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

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

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

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

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

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

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

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

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

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

type Err = ()

The associated error which can be returned from parsing.

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

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

type Output = Fp3<P>

The resulting type after applying the * operator.

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

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

type Output = Fp3<P>

The resulting type after applying the - operator.

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

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

Fp3 elements are ordered lexicographically.

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

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

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

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

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

Returns the Legendre symbol.

pub fn sqrt(&self) -> Option<Fp3<P>>[src]

Returns the square root of self, if it exists.

pub fn sqrt_in_place(&mut self) -> Option<&mut Fp3<P>>[src]

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

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

type Output = Fp3<P>

The resulting type after applying the - operator.

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

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

impl<P> Zero for Fp3<P> where
    P: Fp3Parameters
[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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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>,