Struct snarkvm_fields::Fp384 [−][src]
pub struct Fp384<P: Fp384Parameters>(pub BigInteger, _);
Implementations
impl<P: Fp384Parameters> Fp384<P>
[src]
impl<P: Fp384Parameters> Fp384<P>
[src]Trait Implementations
impl<'a, P: Fp384Parameters> Add<&'a Fp384<P>> for Fp384<P>
[src]
impl<'a, P: Fp384Parameters> Add<&'a Fp384<P>> for Fp384<P>
[src]impl<'a, P: Fp384Parameters> AddAssign<&'a Fp384<P>> for Fp384<P>
[src]
impl<'a, P: Fp384Parameters> AddAssign<&'a Fp384<P>> for Fp384<P>
[src]fn add_assign(&mut self, other: &Self)
[src]
fn add_assign(&mut self, other: &Self)
[src]Performs the +=
operation. Read more
impl<P: Fp384Parameters> CanonicalDeserialize for Fp384<P>
[src]
impl<P: Fp384Parameters> CanonicalDeserialize for Fp384<P>
[src]fn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>
[src]
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>
[src]Reads Self
from reader
.
fn deserialize_uncompressed<R>(
reader: &mut R
) -> Result<Self, SerializationError> where
R: Read,
[src]
fn deserialize_uncompressed<R>(
reader: &mut R
) -> Result<Self, SerializationError> where
R: Read,
[src]Reads Self
from reader
without compression.
impl<P: Fp384Parameters> CanonicalDeserializeWithFlags for Fp384<P>
[src]
impl<P: Fp384Parameters> CanonicalDeserializeWithFlags for Fp384<P>
[src]fn deserialize_with_flags<R: Read, F: Flags>(
reader: &mut R
) -> Result<(Self, F), SerializationError>
[src]
fn deserialize_with_flags<R: Read, F: Flags>(
reader: &mut R
) -> Result<(Self, F), SerializationError>
[src]Reads Self
and Flags
from reader
.
Returns empty flags by default. Read more
impl<P: Fp384Parameters> CanonicalSerialize for Fp384<P>
[src]
impl<P: Fp384Parameters> CanonicalSerialize for Fp384<P>
[src]fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>
[src]
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>
[src]Serializes self
into writer
.
fn serialized_size(&self) -> usize
[src]
fn serialize_uncompressed<W>(
&self,
writer: &mut W
) -> Result<(), SerializationError> where
W: Write,
[src]
fn serialize_uncompressed<W>(
&self,
writer: &mut W
) -> Result<(), SerializationError> where
W: Write,
[src]Serializes self
into writer
without compression.
fn uncompressed_size(&self) -> usize
[src]
impl<P: Fp384Parameters> CanonicalSerializeWithFlags for Fp384<P>
[src]
impl<P: Fp384Parameters> CanonicalSerializeWithFlags for Fp384<P>
[src]fn serialize_with_flags<W: Write, F: Flags>(
&self,
writer: &mut W,
flags: F
) -> Result<(), SerializationError>
[src]
fn serialize_with_flags<W: Write, F: Flags>(
&self,
writer: &mut W,
flags: F
) -> Result<(), SerializationError>
[src]Serializes self
and flags
into writer
.
impl<P: Fp384Parameters> Clone for Fp384<P> where
P: Fp384Parameters,
[src]
impl<P: Fp384Parameters> Clone for Fp384<P> where
P: Fp384Parameters,
[src]impl<P: Fp384Parameters> ConstantSerializedSize for Fp384<P>
[src]
impl<P: Fp384Parameters> ConstantSerializedSize for Fp384<P>
[src]impl<P: Fp384Parameters> Debug for Fp384<P>
[src]
impl<P: Fp384Parameters> Debug for Fp384<P>
[src]impl<P: Fp384Parameters> Default for Fp384<P> where
P: Fp384Parameters,
[src]
impl<P: Fp384Parameters> Default for Fp384<P> where
P: Fp384Parameters,
[src]impl<'de, P: Fp384Parameters> Deserialize<'de> for Fp384<P>
[src]
impl<'de, P: Fp384Parameters> Deserialize<'de> for Fp384<P>
[src]fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl<P: Fp384Parameters> Display for Fp384<P>
[src]
impl<P: Fp384Parameters> Display for Fp384<P>
[src]impl<'a, P: Fp384Parameters> Div<&'a Fp384<P>> for Fp384<P>
[src]
impl<'a, P: Fp384Parameters> Div<&'a Fp384<P>> for Fp384<P>
[src]impl<'a, P: Fp384Parameters> DivAssign<&'a Fp384<P>> for Fp384<P>
[src]
impl<'a, P: Fp384Parameters> DivAssign<&'a Fp384<P>> for Fp384<P>
[src]fn div_assign(&mut self, other: &Self)
[src]
fn div_assign(&mut self, other: &Self)
[src]Performs the /=
operation. Read more
impl<P: Fp384Parameters> Field for Fp384<P>
[src]
impl<P: Fp384Parameters> Field for Fp384<P>
[src]fn from_random_bytes_with_flags(bytes: &[u8]) -> Option<(Self, u8)>
[src]
fn from_random_bytes_with_flags(bytes: &[u8]) -> Option<(Self, u8)>
[src]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. Read more
fn double_in_place(&mut self) -> &mut Self
[src]
fn double_in_place(&mut self) -> &mut Self
[src]Doubles self
in place.
fn characteristic<'a>() -> &'a [u64]
[src]
fn characteristic<'a>() -> &'a [u64]
[src]Returns the characteristic of the field.
fn square_in_place(&mut self) -> &mut Self
[src]
fn square_in_place(&mut self) -> &mut Self
[src]Squares self
in place.
fn inverse(&self) -> Option<Self>
[src]
fn inverse(&self) -> Option<Self>
[src]Computes the multiplicative inverse of self
if self
is nonzero.
fn inverse_in_place(&mut self) -> Option<&mut Self>
[src]
fn frobenius_map(&mut self, _: usize)
[src]
fn frobenius_map(&mut self, _: usize)
[src]Exponentiates this element by a power of the base prime modulus via the Frobenius automorphism. Read more
impl<P: Fp384Parameters> From<u128> for Fp384<P>
[src]
impl<P: Fp384Parameters> From<u128> for Fp384<P>
[src]impl<P: Fp384Parameters> From<u16> for Fp384<P>
[src]
impl<P: Fp384Parameters> From<u16> for Fp384<P>
[src]impl<P: Fp384Parameters> From<u32> for Fp384<P>
[src]
impl<P: Fp384Parameters> From<u32> for Fp384<P>
[src]impl<P: Fp384Parameters> From<u64> for Fp384<P>
[src]
impl<P: Fp384Parameters> From<u64> for Fp384<P>
[src]impl<P: Fp384Parameters> From<u8> for Fp384<P>
[src]
impl<P: Fp384Parameters> From<u8> for Fp384<P>
[src]impl<P: Fp384Parameters> FromBytes for Fp384<P>
[src]
impl<P: Fp384Parameters> FromBytes for Fp384<P>
[src]impl<P: Fp384Parameters> FromStr for Fp384<P>
[src]
impl<P: Fp384Parameters> FromStr for Fp384<P>
[src]impl<P: Fp384Parameters> Hash for Fp384<P> where
P: Fp384Parameters,
[src]
impl<P: Fp384Parameters> Hash for Fp384<P> where
P: Fp384Parameters,
[src]impl<P: Fp384Parameters> Into<BigInteger384> for Fp384<P>
[src]
impl<P: Fp384Parameters> Into<BigInteger384> for Fp384<P>
[src]fn into(self) -> BigInteger384
[src]
fn into(self) -> BigInteger384
[src]Performs the conversion.
impl<'a, P: Fp384Parameters> Mul<&'a Fp384<P>> for Fp384<P>
[src]
impl<'a, P: Fp384Parameters> Mul<&'a Fp384<P>> for Fp384<P>
[src]impl<'a, P: Fp384Parameters> MulAssign<&'a Fp384<P>> for Fp384<P>
[src]
impl<'a, P: Fp384Parameters> MulAssign<&'a Fp384<P>> for Fp384<P>
[src]fn mul_assign(&mut self, other: &Self)
[src]
fn mul_assign(&mut self, other: &Self)
[src]Performs the *=
operation. Read more
impl<P: Fp384Parameters> Neg for Fp384<P>
[src]
impl<P: Fp384Parameters> Neg for Fp384<P>
[src]impl<P: Fp384Parameters> Ord for Fp384<P>
[src]
impl<P: Fp384Parameters> Ord for Fp384<P>
[src]impl<P: Fp384Parameters> PartialEq<Fp384<P>> for Fp384<P> where
P: Fp384Parameters,
[src]
impl<P: Fp384Parameters> PartialEq<Fp384<P>> for Fp384<P> where
P: Fp384Parameters,
[src]impl<P: Fp384Parameters> PartialOrd<Fp384<P>> for Fp384<P>
[src]
impl<P: Fp384Parameters> PartialOrd<Fp384<P>> for Fp384<P>
[src]fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<P: Fp384Parameters> PrimeField for Fp384<P>
[src]
impl<P: Fp384Parameters> PrimeField for Fp384<P>
[src]type BigInteger = BigInteger
type Parameters = P
fn from_repr(r: BigInteger) -> Option<Self>
[src]
fn from_repr(r: BigInteger) -> Option<Self>
[src]Returns a prime field element from its underlying representation.
fn into_repr(&self) -> BigInteger
[src]
fn into_repr(&self) -> BigInteger
[src]Returns the underlying representation of the prime field element.
fn from_repr_raw(r: BigInteger) -> Self
[src]
fn from_repr_raw(r: BigInteger) -> Self
[src]Returns a prime field element from its underlying raw representation.
fn into_repr_raw(&self) -> BigInteger
[src]
fn into_repr_raw(&self) -> BigInteger
[src]Returns the underlying raw representation of the prime field element.
fn multiplicative_generator() -> Self
[src]
fn multiplicative_generator() -> Self
[src]Returns the multiplicative generator of char()
- 1 order.
fn root_of_unity() -> Self
[src]
fn root_of_unity() -> Self
[src]Returns the 2^s root of unity.
fn size_in_bits() -> usize
[src]
fn size_in_bits() -> usize
[src]Returns the field size in bits.
fn trace() -> Self::BigInteger
[src]
fn trace() -> Self::BigInteger
[src]Returns the trace.
fn trace_minus_one_div_two() -> Self::BigInteger
[src]
fn trace_minus_one_div_two() -> Self::BigInteger
[src]Returns the trace minus one divided by two.
fn modulus_minus_one_div_two() -> Self::BigInteger
[src]
fn modulus_minus_one_div_two() -> Self::BigInteger
[src]Returns the modulus minus one divided by two.
impl<P: Fp384Parameters> Serialize for Fp384<P>
[src]
impl<P: Fp384Parameters> Serialize for Fp384<P>
[src]impl<P: Fp384Parameters> SquareRootField for Fp384<P>
[src]
impl<P: Fp384Parameters> SquareRootField for Fp384<P>
[src]fn legendre(&self) -> LegendreSymbol
[src]
fn legendre(&self) -> LegendreSymbol
[src]Returns the Legendre symbol.
fn sqrt_in_place(&mut self) -> Option<&mut Self>
[src]
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: Fp384Parameters> Sub<&'a Fp384<P>> for Fp384<P>
[src]
impl<'a, P: Fp384Parameters> Sub<&'a Fp384<P>> for Fp384<P>
[src]impl<'a, P: Fp384Parameters> SubAssign<&'a Fp384<P>> for Fp384<P>
[src]
impl<'a, P: Fp384Parameters> SubAssign<&'a Fp384<P>> for Fp384<P>
[src]fn sub_assign(&mut self, other: &Self)
[src]
fn sub_assign(&mut self, other: &Self)
[src]Performs the -=
operation. Read more
impl<P: Fp384Parameters> ToBytes for Fp384<P>
[src]
impl<P: Fp384Parameters> ToBytes for Fp384<P>
[src]impl<P: Fp384Parameters> Copy for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
impl<P: Fp384Parameters> Eq for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
Auto Trait Implementations
impl<P> RefUnwindSafe for Fp384<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for Fp384<P>
impl<P> Sync for Fp384<P>
impl<P> Unpin for Fp384<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for Fp384<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> UniformRand for T where
Standard: Distribution<T>,
[src]
impl<T> UniformRand for T where
Standard: Distribution<T>,
[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,