Struct snarkvm_wasm::Fp256[][src]

pub struct Fp256<P>(pub BigInteger256, _);

Implementations

impl<P> Fp256<P> where
    P: Fp256Parameters
[src]

pub fn new(element: BigInteger256) -> Fp256<P>[src]

Trait Implementations

impl<'a, P> Add<&'a Fp256<P>> for Fp256<P> where
    P: Fp256Parameters
[src]

type Output = Fp256<P>

The resulting type after applying the + operator.

impl<'a, P> AddAssign<&'a Fp256<P>> for Fp256<P> where
    P: Fp256Parameters
[src]

impl<P> CanonicalDeserialize for Fp256<P> where
    P: Fp256Parameters
[src]

impl<P> CanonicalDeserializeWithFlags for Fp256<P> where
    P: Fp256Parameters
[src]

impl<P> CanonicalSerialize for Fp256<P> where
    P: Fp256Parameters
[src]

impl<P> CanonicalSerializeWithFlags for Fp256<P> where
    P: Fp256Parameters
[src]

impl<P> Clone for Fp256<P>[src]

impl<P> ConstantSerializedSize for Fp256<P> where
    P: Fp256Parameters
[src]

impl<P> Copy for Fp256<P>[src]

impl<P> Debug for Fp256<P>[src]

impl<P> Default for Fp256<P>[src]

impl<'de, P> Deserialize<'de> for Fp256<P> where
    P: Fp256Parameters
[src]

impl<P> Display for Fp256<P> where
    P: Fp256Parameters
[src]

impl<'a, P> Div<&'a Fp256<P>> for Fp256<P> where
    P: Fp256Parameters
[src]

type Output = Fp256<P>

The resulting type after applying the / operator.

impl<'a, P> DivAssign<&'a Fp256<P>> for Fp256<P> where
    P: Fp256Parameters
[src]

impl<P> Eq for Fp256<P>[src]

impl<P> Field for Fp256<P> where
    P: Fp256Parameters
[src]

impl<P> From<u128> for Fp256<P> where
    P: Fp256Parameters
[src]

pub fn from(other: u128) -> Fp256<P>[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> From<u16> for Fp256<P> where
    P: Fp256Parameters
[src]

pub fn from(other: u16) -> Fp256<P>[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> From<u32> for Fp256<P> where
    P: Fp256Parameters
[src]

pub fn from(other: u32) -> Fp256<P>[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> From<u64> for Fp256<P> where
    P: Fp256Parameters
[src]

pub fn from(other: u64) -> Fp256<P>[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> From<u8> for Fp256<P> where
    P: Fp256Parameters
[src]

pub fn from(other: u8) -> Fp256<P>[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> FromBytes for Fp256<P> where
    P: Fp256Parameters
[src]

impl<P> FromStr for Fp256<P> where
    P: Fp256Parameters
[src]

type Err = FieldError

The associated error which can be returned from parsing.

pub fn from_str(s: &str) -> Result<Fp256<P>, <Fp256<P> as FromStr>::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> Hash for Fp256<P>[src]

impl<P> Into<BigInteger256> for Fp256<P> where
    P: Fp256Parameters
[src]

impl<'a, P> Mul<&'a Fp256<P>> for Fp256<P> where
    P: Fp256Parameters
[src]

type Output = Fp256<P>

The resulting type after applying the * operator.

impl<'a, P> MulAssign<&'a Fp256<P>> for Fp256<P> where
    P: Fp256Parameters
[src]

impl<P> Neg for Fp256<P> where
    P: Fp256Parameters
[src]

type Output = Fp256<P>

The resulting type after applying the - operator.

impl<P> One for Fp256<P> where
    P: Fp256Parameters
[src]

impl<P> Ord for Fp256<P> where
    P: Fp256Parameters
[src]

Fp elements are ordered lexicographically.

impl<P> PartialEq<Fp256<P>> for Fp256<P>[src]

impl<P> PartialOrd<Fp256<P>> for Fp256<P> where
    P: Fp256Parameters
[src]

impl<P> PrimeField for Fp256<P> where
    P: Fp256Parameters
[src]

type BigInteger = BigInteger256

type Parameters = P

impl<P> Serialize for Fp256<P> where
    P: Fp256Parameters
[src]

impl<P> SquareRootField for Fp256<P> where
    P: Fp256Parameters
[src]

impl<'a, P> Sub<&'a Fp256<P>> for Fp256<P> where
    P: Fp256Parameters
[src]

type Output = Fp256<P>

The resulting type after applying the - operator.

impl<'a, P> SubAssign<&'a Fp256<P>> for Fp256<P> where
    P: Fp256Parameters
[src]

impl<P> ToBytes for Fp256<P> where
    P: Fp256Parameters
[src]

impl<P> Zero for Fp256<P> where
    P: Fp256Parameters
[src]

Auto Trait Implementations

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

impl<P> Send for Fp256<P> where
    P: Send

impl<P> Sync for Fp256<P> where
    P: Sync

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

impl<P> UnwindSafe for Fp256<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<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<F> ToConstraintField<F> for F where
    F: PrimeField
[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>,