snarkvm_fields

Struct Fp384

Source
pub struct Fp384<P: Fp384Parameters>(pub BigInteger384, _);

Tuple Fields§

§0: BigInteger384

Implementations§

Source§

impl<P: Fp384Parameters> Fp384<P>

Source

pub fn is_valid(&self) -> bool

Trait Implementations§

Source§

impl<P: Fp384Parameters> Add<&&Fp384<P>> for Fp384<P>

Source§

type Output = Fp384<P>

The resulting type after applying the + operator.
Source§

fn add(self, other: &&Self) -> Self

Performs the + operation. Read more
Source§

impl<'a, P: Fp384Parameters> Add<&'a Fp384<P>> for Fp384<P>

Source§

type Output = Fp384<P>

The resulting type after applying the + operator.
Source§

fn add(self, other: &Self) -> Self

Performs the + operation. Read more
Source§

impl<'a, P: Fp384Parameters> Add<&'a mut Fp384<P>> for Fp384<P>

Source§

type Output = Fp384<P>

The resulting type after applying the + operator.
Source§

fn add(self, other: &'a mut Self) -> Self

Performs the + operation. Read more
Source§

impl<P: Fp384Parameters> Add for Fp384<P>

Source§

type Output = Fp384<P>

The resulting type after applying the + operator.
Source§

fn add(self, other: Self) -> Self

Performs the + operation. Read more
Source§

impl<P: Fp384Parameters> AddAssign<&&Fp384<P>> for Fp384<P>

Source§

fn add_assign(&mut self, other: &&Self)

Performs the += operation. Read more
Source§

impl<'a, P: Fp384Parameters> AddAssign<&'a Fp384<P>> for Fp384<P>

Source§

fn add_assign(&mut self, other: &Self)

Performs the += operation. Read more
Source§

impl<'a, P: Fp384Parameters> AddAssign<&'a mut Fp384<P>> for Fp384<P>

Source§

fn add_assign(&mut self, other: &'a mut Self)

Performs the += operation. Read more
Source§

impl<P: Fp384Parameters> AddAssign for Fp384<P>

Source§

fn add_assign(&mut self, other: Self)

Performs the += operation. Read more
Source§

impl<P: Fp384Parameters> CanonicalDeserialize for Fp384<P>

Source§

fn deserialize_with_mode<R: Read>( reader: R, _compress: Compress, _validate: Validate, ) -> Result<Self, SerializationError>

Source§

fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>
where R: Read,

Source§

fn deserialize_compressed_unchecked<R>( reader: R, ) -> Result<Self, SerializationError>
where R: Read,

Source§

fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>
where R: Read,

Source§

fn deserialize_uncompressed_unchecked<R>( reader: R, ) -> Result<Self, SerializationError>
where R: Read,

Source§

impl<P: Fp384Parameters> CanonicalDeserializeWithFlags for Fp384<P>

Source§

fn deserialize_with_flags<R: Read, F: Flags>( reader: R, ) -> Result<(Self, F), SerializationError>

Reads Self and Flags from reader. Returns empty flags by default.
Source§

impl<P: Fp384Parameters> CanonicalSerialize for Fp384<P>

Source§

fn serialize_with_mode<W: Write>( &self, writer: W, _compress: Compress, ) -> Result<(), SerializationError>

Source§

fn serialized_size(&self, _compress: Compress) -> usize

Source§

fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>
where W: Write,

Source§

fn compressed_size(&self) -> usize

Source§

fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>
where W: Write,

Source§

fn uncompressed_size(&self) -> usize

Source§

impl<P: Fp384Parameters> CanonicalSerializeWithFlags for Fp384<P>

Source§

fn serialize_with_flags<W: Write, F: Flags>( &self, writer: W, flags: F, ) -> Result<(), SerializationError>

Serializes self and flags into writer.
Source§

fn serialized_size_with_flags<F: Flags>(&self) -> usize

Serializes self and flags into writer.
Source§

impl<P: Clone + Fp384Parameters> Clone for Fp384<P>

Source§

fn clone(&self) -> Fp384<P>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<P: Fp384Parameters> Debug for Fp384<P>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult

Formats the value using the given formatter. Read more
Source§

impl<P: Default + Fp384Parameters> Default for Fp384<P>

Source§

fn default() -> Fp384<P>

Returns the “default value” for a type. Read more
Source§

impl<'de, P: Fp384Parameters> Deserialize<'de> for Fp384<P>

Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<P: Fp384Parameters> Display for Fp384<P>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult

Formats the value using the given formatter. Read more
Source§

impl<P: Fp384Parameters> Distribution<Fp384<P>> for Standard

Source§

fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Fp384<P>

Generate a random value of T, using rng as the source of randomness.
Source§

fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
where R: Rng, Self: Sized,

Create an iterator that generates random values of T, using rng as the source of randomness. Read more
Source§

fn map<F, S>(self, func: F) -> DistMap<Self, F, T, S>
where F: Fn(T) -> S, Self: Sized,

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more
Source§

impl<P: Fp384Parameters> Div<&&Fp384<P>> for Fp384<P>

Source§

type Output = Fp384<P>

The resulting type after applying the / operator.
Source§

fn div(self, other: &&Self) -> Self

Performs the / operation. Read more
Source§

impl<'a, P: Fp384Parameters> Div<&'a Fp384<P>> for Fp384<P>

Source§

type Output = Fp384<P>

The resulting type after applying the / operator.
Source§

fn div(self, other: &Self) -> Self

Performs the / operation. Read more
Source§

impl<'a, P: Fp384Parameters> Div<&'a mut Fp384<P>> for Fp384<P>

Source§

type Output = Fp384<P>

The resulting type after applying the / operator.
Source§

fn div(self, other: &'a mut Self) -> Self

Performs the / operation. Read more
Source§

impl<P: Fp384Parameters> Div for Fp384<P>

Source§

type Output = Fp384<P>

The resulting type after applying the / operator.
Source§

fn div(self, other: Self) -> Self

Performs the / operation. Read more
Source§

impl<P: Fp384Parameters> DivAssign<&&Fp384<P>> for Fp384<P>

Source§

fn div_assign(&mut self, other: &&Self)

Performs the /= operation. Read more
Source§

impl<'a, P: Fp384Parameters> DivAssign<&'a Fp384<P>> for Fp384<P>

Source§

fn div_assign(&mut self, other: &Self)

Performs the /= operation. Read more
Source§

impl<'a, P: Fp384Parameters> DivAssign<&'a mut Fp384<P>> for Fp384<P>

Source§

fn div_assign(&mut self, other: &'a mut Self)

Performs the /= operation. Read more
Source§

impl<P: Fp384Parameters> DivAssign for Fp384<P>

Source§

fn div_assign(&mut self, other: Self)

Performs the /= operation. Read more
Source§

impl<P: Fp384Parameters> FftField for Fp384<P>

Source§

type FftParameters = P

Source§

fn two_adic_root_of_unity() -> Self

Returns the 2^s root of unity.
Source§

fn large_subgroup_root_of_unity() -> Option<Self>

Returns the 2^s * small_subgroup_base^small_subgroup_base_adicity root of unity if a small subgroup is defined.
Source§

fn multiplicative_generator() -> Self

Returns the multiplicative generator of char() - 1 order.
Source§

fn get_root_of_unity(n: usize) -> Option<Self>

Returns the root of unity of order n, if one exists. If no small multiplicative subgroup is defined, this is the 2-adic root of unity of order n (for n a power of 2). If a small multiplicative subgroup is defined, this is the root of unity of order n for the larger subgroup generated by FftParams::LARGE_SUBGROUP_ROOT_OF_UNITY (for n = 2^i * FftParams::SMALL_SUBGROUP_BASE^j for some i, j).
Source§

fn k_adicity(k: usize, n: usize) -> u32

Calculates the k-adicity of n, i.e., the number of trailing 0s in a base-k representation.
Source§

impl<P: Fp384Parameters> Field for Fp384<P>

Source§

type BasePrimeField = Fp384<P>

Source§

fn from_random_bytes_with_flags<F: Flags>(bytes: &[u8]) -> Option<(Self, F)>

Returns a field element with an extra sign bit used for group parsing if the set of bytes forms a valid field element, otherwise returns None. This function is primarily intended for sampling random field elements from a hash-function or RNG output.
Source§

fn from_base_prime_field(other: Self::BasePrimeField) -> Self

Constructs an element of Self from an element of the base prime field.
Source§

fn half() -> Self

Returns the constant 2^{-1}.
Source§

fn sum_of_products<'a>( a: impl Iterator<Item = &'a Self> + Clone, b: impl Iterator<Item = &'a Self> + Clone, ) -> Self

Source§

fn double(&self) -> Self

Returns self + self.
Source§

fn double_in_place(&mut self)

Doubles self in place.
Source§

fn characteristic<'a>() -> &'a [u64]

Returns the characteristic of the field.
Source§

fn square(&self) -> Self

Returns self * self.
Source§

fn square_in_place(&mut self) -> &mut Self

Squares self in place.
Source§

fn inverse(&self) -> Option<Self>

Computes the multiplicative inverse of self if self is nonzero.
Source§

fn inverse_in_place(&mut self) -> Option<&mut Self>

Sets self to self’s inverse if it exists. Otherwise it is a no-op.
Source§

fn frobenius_map(&mut self, _: usize)

Exponentiates this element by a power of the base prime modulus via the Frobenius automorphism.
Source§

fn pow<S: AsRef<[u64]>>(&self, exp: S) -> Self

Exponentiates this element by a number represented with u64 limbs, least significant limb first.
Source§

fn from_random_bytes(bytes: &[u8]) -> Option<Self>

Returns a field element if the set of bytes forms a valid field element, otherwise returns None. This function is primarily intended for sampling random field elements from a hash-function or RNG output.
Source§

impl<P: Fp384Parameters> From<u128> for Fp384<P>

Source§

fn from(other: u128) -> Self

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

Source§

impl<P: Fp384Parameters> From<u16> for Fp384<P>

Source§

fn from(other: u16) -> Self

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

Source§

impl<P: Fp384Parameters> From<u32> for Fp384<P>

Source§

fn from(other: u32) -> Self

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

Source§

impl<P: Fp384Parameters> From<u64> for Fp384<P>

Source§

fn from(other: u64) -> Self

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

Source§

impl<P: Fp384Parameters> From<u8> for Fp384<P>

Source§

fn from(other: u8) -> Self

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

Source§

impl<P: Fp384Parameters> FromBytes for Fp384<P>

Source§

fn read_le<R: Read>(reader: R) -> IoResult<Self>

Reads Self from reader as little-endian bytes.
Source§

fn from_bytes_le(bytes: &[u8]) -> Result<Self, Error>
where Self: Sized,

Returns Self from a byte array in little-endian order.
Source§

impl<P: Fp384Parameters> FromStr for Fp384<P>

Source§

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

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

Source§

type Err = FieldError

The associated error which can be returned from parsing.
Source§

impl<P: Hash + Fp384Parameters> Hash for Fp384<P>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<P: Fp384Parameters> Into<BigInteger384> for Fp384<P>

Source§

fn into(self) -> BigInteger384

Converts this type into the (usually inferred) input type.
Source§

impl<P: Fp384Parameters> Mul<&&Fp384<P>> for Fp384<P>

Source§

type Output = Fp384<P>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &&Self) -> Self

Performs the * operation. Read more
Source§

impl<'a, P: Fp384Parameters> Mul<&'a Fp384<P>> for Fp384<P>

Source§

type Output = Fp384<P>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &Self) -> Self

Performs the * operation. Read more
Source§

impl<'a, P: Fp384Parameters> Mul<&'a mut Fp384<P>> for Fp384<P>

Source§

type Output = Fp384<P>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a mut Self) -> Self

Performs the * operation. Read more
Source§

impl<P: Fp384Parameters> Mul for Fp384<P>

Source§

type Output = Fp384<P>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Self) -> Self

Performs the * operation. Read more
Source§

impl<P: Fp384Parameters> MulAssign<&&Fp384<P>> for Fp384<P>

Source§

fn mul_assign(&mut self, other: &&Self)

Performs the *= operation. Read more
Source§

impl<'a, P: Fp384Parameters> MulAssign<&'a Fp384<P>> for Fp384<P>

Source§

fn mul_assign(&mut self, other: &Self)

Performs the *= operation. Read more
Source§

impl<'a, P: Fp384Parameters> MulAssign<&'a mut Fp384<P>> for Fp384<P>

Source§

fn mul_assign(&mut self, other: &'a mut Self)

Performs the *= operation. Read more
Source§

impl<P: Fp384Parameters> MulAssign for Fp384<P>

Source§

fn mul_assign(&mut self, other: Self)

Performs the *= operation. Read more
Source§

impl<P: Fp384Parameters> Neg for Fp384<P>

Source§

type Output = Fp384<P>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl<P: Fp384Parameters> One for Fp384<P>

Source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn is_one(&self) -> bool

Returns true if self is equal to the multiplicative identity. Read more
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

impl<P: Fp384Parameters> Ord for Fp384<P>

Fp elements are ordered lexicographically.

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<P: PartialEq + Fp384Parameters> PartialEq for Fp384<P>

Source§

fn eq(&self, other: &Fp384<P>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<P: Fp384Parameters> PartialOrd for Fp384<P>

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<P: Fp384Parameters + PoseidonDefaultParameters> PoseidonDefaultField for Fp384<P>

Source§

fn default_poseidon_parameters<const RATE: usize>() -> Result<PoseidonParameters<Self, RATE, 1>>
where Self: PrimeField,

Obtain the default Poseidon parameters for this rate and for this prime field, with a specific optimization goal.
Source§

impl<P: Fp384Parameters> PrimeField for Fp384<P>

Source§

type BigInteger = BigInteger384

Source§

type Parameters = P

Source§

fn from_bigint(r: BigInteger) -> Option<Self>

Constructs a PrimeField element given a human-readable Self::BigInteger.
Source§

fn to_bigint(&self) -> BigInteger

Returns a human-readable Self::BigInteger in the range 0..(Self::MODULUS - 1).
Source§

fn decompose( &self, _q1: &[u64; 4], _q2: &[u64; 4], _b1: Self, _b2: Self, _r128: Self, _half_r: &[u64; 8], ) -> (Self, Self, bool, bool)

Returns the decomposition of the scalar.
Source§

const SIZE_IN_BITS: usize = _

Returns the field size in bits.
Source§

const SIZE_IN_DATA_BITS: usize = _

Returns the field capacity for data bits.
Source§

fn size_in_bits() -> usize

Returns the field size in bits.
Source§

fn size_in_data_bits() -> usize

Returns the capacity size for data bits.
Source§

fn modulus() -> Self::BigInteger

Returns the modulus.
Source§

fn modulus_minus_one_div_two() -> Self::BigInteger

Returns the modulus minus one divided by two.
Source§

fn trace() -> Self::BigInteger

Returns the trace.
Source§

fn trace_minus_one_div_two() -> Self::BigInteger

Returns the trace minus one divided by two.
Source§

fn from_bytes_be_mod_order(bytes: &[u8]) -> Self

Reads bytes in big-endian, and converts them to a field element. If the bytes are larger than the modulus, it will reduce them.
Source§

fn from_bytes_le_mod_order(bytes: &[u8]) -> Self

Reads bytes in little-endian, and converts them to a field element. If the bytes are larger than the modulus, it will reduce them.
Source§

impl<'a, P: Fp384Parameters> Product<&'a Fp384<P>> for Fp384<P>

Source§

fn product<I: Iterator<Item = &'a Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl<P: Fp384Parameters> Product for Fp384<P>

Source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl<P: Fp384Parameters> Serialize for Fp384<P>

Source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl<P: Fp384Parameters> SquareRootField for Fp384<P>

Source§

fn legendre(&self) -> LegendreSymbol

Returns the Legendre symbol.
Source§

fn sqrt(&self) -> Option<Self>

Returns the square root of self, if it exists.
Source§

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

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

impl<P: Fp384Parameters> Sub<&&Fp384<P>> for Fp384<P>

Source§

type Output = Fp384<P>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &&Self) -> Self

Performs the - operation. Read more
Source§

impl<'a, P: Fp384Parameters> Sub<&'a Fp384<P>> for Fp384<P>

Source§

type Output = Fp384<P>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &Self) -> Self

Performs the - operation. Read more
Source§

impl<'a, P: Fp384Parameters> Sub<&'a mut Fp384<P>> for Fp384<P>

Source§

type Output = Fp384<P>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &'a mut Self) -> Self

Performs the - operation. Read more
Source§

impl<P: Fp384Parameters> Sub for Fp384<P>

Source§

type Output = Fp384<P>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Self) -> Self

Performs the - operation. Read more
Source§

impl<P: Fp384Parameters> SubAssign<&&Fp384<P>> for Fp384<P>

Source§

fn sub_assign(&mut self, other: &&Self)

Performs the -= operation. Read more
Source§

impl<'a, P: Fp384Parameters> SubAssign<&'a Fp384<P>> for Fp384<P>

Source§

fn sub_assign(&mut self, other: &Self)

Performs the -= operation. Read more
Source§

impl<'a, P: Fp384Parameters> SubAssign<&'a mut Fp384<P>> for Fp384<P>

Source§

fn sub_assign(&mut self, other: &'a mut Self)

Performs the -= operation. Read more
Source§

impl<P: Fp384Parameters> SubAssign for Fp384<P>

Source§

fn sub_assign(&mut self, other: Self)

Performs the -= operation. Read more
Source§

impl<'a, P: Fp384Parameters> Sum<&'a Fp384<P>> for Fp384<P>

Source§

fn sum<I: Iterator<Item = &'a Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl<P: Fp384Parameters> Sum for Fp384<P>

Source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl<P: Fp384Parameters> ToBits for Fp384<P>

Source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Writes self into the given vector as a boolean array in little-endian order.
Source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Writes self into the given vector as a boolean array in big-endian order.
Source§

fn num_bits() -> Option<usize>

An optional indication of how many bits an object can be represented with.
Source§

fn to_bits_le(&self) -> Vec<bool>

Returns self as a boolean array in little-endian order.
Source§

fn to_bits_be(&self) -> Vec<bool>

Returns self as a boolean array in big-endian order.
Source§

impl<P: Fp384Parameters> ToBytes for Fp384<P>

Source§

fn write_le<W: Write>(&self, writer: W) -> IoResult<()>

Writes self into writer as little-endian bytes.
Source§

fn to_bytes_le(&self) -> Result<Vec<u8>, Error>
where Self: Sized,

Returns self as a byte array in little-endian order.
Source§

impl<P: Fp384Parameters> Valid for Fp384<P>

Source§

fn check(&self) -> Result<(), SerializationError>

Source§

fn batch_check<'a>( _batch: impl Iterator<Item = &'a Self> + Send, ) -> Result<(), SerializationError>
where Self: 'a,

Source§

impl<P: Fp384Parameters> Zero for Fp384<P>

Source§

fn zero() -> Self

Source§

fn is_zero(&self) -> bool

Source§

impl<P: Fp384Parameters> Zeroize for Fp384<P>

Source§

fn zeroize(&mut self)

Zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler.
Source§

impl<P: Copy + Fp384Parameters> Copy for Fp384<P>

Source§

impl<P: Eq + Fp384Parameters> Eq for Fp384<P>

Source§

impl<P: Fp384Parameters> StructuralPartialEq for Fp384<P>

Auto Trait Implementations§

§

impl<P> Freeze for Fp384<P>

§

impl<P> RefUnwindSafe for Fp384<P>
where P: RefUnwindSafe,

§

impl<P> Send for Fp384<P>

§

impl<P> Sync for Fp384<P>

§

impl<P> Unpin for Fp384<P>
where P: Unpin,

§

impl<P> UnwindSafe for Fp384<P>
where P: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

impl<'de, T> DeserializeExt<'de> for T

Source§

fn take_from_value<D>( value: &mut Value, field: &str, ) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize = _

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<F> ToConstraintField<F> for F
where F: PrimeField,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSmolStr for T
where T: Display + ?Sized,

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Uniform for T

Source§

fn rand<R>(rng: &mut R) -> T
where R: Rng + ?Sized,

Samples a random value from a uniform distribution.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,