Struct snarkvm_wasm::Fp384 [−][src]
Implementations
impl<P> Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
Trait Implementations
impl<'a, P> Add<&'a Fp384<P>> for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
type Output = Fp384<P>
The resulting type after applying the +
operator.
pub fn add(self, other: &Fp384<P>) -> Fp384<P>
[src]
impl<'a, P> AddAssign<&'a Fp384<P>> for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn add_assign(&mut self, other: &Fp384<P>)
[src]
impl<P> CanonicalDeserialize for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn deserialize<R>(reader: &mut R) -> Result<Fp384<P>, SerializationError> where
R: Read,
[src]
R: Read,
pub fn deserialize_uncompressed<R>(
reader: &mut R
) -> Result<Self, SerializationError> where
R: Read,
[src]
reader: &mut R
) -> Result<Self, SerializationError> where
R: Read,
impl<P> CanonicalDeserializeWithFlags for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn deserialize_with_flags<R, F>(
reader: &mut R
) -> Result<(Fp384<P>, F), SerializationError> where
R: Read,
F: Flags,
[src]
reader: &mut R
) -> Result<(Fp384<P>, F), SerializationError> where
R: Read,
F: Flags,
impl<P> CanonicalSerialize for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn serialize<W>(&self, writer: &mut W) -> Result<(), SerializationError> where
W: Write,
[src]
W: Write,
pub fn serialized_size(&self) -> usize
[src]
pub fn serialize_uncompressed<W>(
&self,
writer: &mut W
) -> Result<(), SerializationError> where
W: Write,
[src]
&self,
writer: &mut W
) -> Result<(), SerializationError> where
W: Write,
pub fn uncompressed_size(&self) -> usize
[src]
impl<P> CanonicalSerializeWithFlags for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn serialize_with_flags<W, F>(
&self,
writer: &mut W,
flags: F
) -> Result<(), SerializationError> where
F: Flags,
W: Write,
[src]
&self,
writer: &mut W,
flags: F
) -> Result<(), SerializationError> where
F: Flags,
W: Write,
impl<P> Clone for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
impl<P> ConstantSerializedSize for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub const SERIALIZED_SIZE: usize
[src]
pub const UNCOMPRESSED_SIZE: usize
[src]
impl<P> Copy for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
impl<P> Debug for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
impl<P> Default for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
impl<'de, P> Deserialize<'de> for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn deserialize<D>(
deserializer: D
) -> Result<Fp384<P>, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<Fp384<P>, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl<P> Display for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
impl<'a, P> Div<&'a Fp384<P>> for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
type Output = Fp384<P>
The resulting type after applying the /
operator.
pub fn div(self, other: &Fp384<P>) -> Fp384<P>
[src]
impl<'a, P> DivAssign<&'a Fp384<P>> for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn div_assign(&mut self, other: &Fp384<P>)
[src]
impl<P> Eq for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
impl<P> Field for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn from_random_bytes_with_flags(bytes: &[u8]) -> Option<(Fp384<P>, u8)>
[src]
pub fn double(&self) -> Fp384<P>
[src]
pub fn double_in_place(&mut self) -> &mut Fp384<P>
[src]
pub fn characteristic<'a>() -> &'a [u64]ⓘ
[src]
pub fn square(&self) -> Fp384<P>
[src]
pub fn square_in_place(&mut self) -> &mut Fp384<P>
[src]
pub fn inverse(&self) -> Option<Fp384<P>>
[src]
pub fn inverse_in_place(&mut self) -> Option<&mut Fp384<P>>
[src]
pub fn frobenius_map(&mut self, usize)
[src]
pub fn pow<S>(&self, exp: S) -> Self where
S: AsRef<[u64]>,
[src]
S: AsRef<[u64]>,
pub fn from_random_bytes(bytes: &[u8]) -> Option<Self>
[src]
impl<P> From<u128> for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn from(other: u128) -> Fp384<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 Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn from(other: u16) -> Fp384<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 Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn from(other: u32) -> Fp384<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 Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn from(other: u64) -> Fp384<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 Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn from(other: u8) -> Fp384<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 Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
impl<P> FromStr for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
type Err = FieldError
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<Fp384<P>, <Fp384<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 Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn hash<__HP>(&self, __state: &mut __HP) where
__HP: Hasher,
[src]
__HP: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<P> Into<BigInteger384> for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn into(self) -> BigInteger384
[src]
impl<'a, P> Mul<&'a Fp384<P>> for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
type Output = Fp384<P>
The resulting type after applying the *
operator.
pub fn mul(self, other: &Fp384<P>) -> Fp384<P>
[src]
impl<'a, P> MulAssign<&'a Fp384<P>> for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn mul_assign(&mut self, other: &Fp384<P>)
[src]
impl<P> Neg for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
type Output = Fp384<P>
The resulting type after applying the -
operator.
#[must_use]pub fn neg(self) -> Fp384<P>
[src]
impl<P> One for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
impl<P> Ord for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn cmp(&self, other: &Fp384<P>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<P> PartialEq<Fp384<P>> for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn eq(&self, other: &Fp384<P>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<P> PartialOrd<Fp384<P>> for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn partial_cmp(&self, other: &Fp384<P>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<P> PrimeField for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
type BigInteger = BigInteger384
type Parameters = P
pub fn from_repr(r: BigInteger384) -> Option<Fp384<P>>
[src]
pub fn into_repr(&self) -> BigInteger384
[src]
pub fn from_repr_raw(r: BigInteger384) -> Fp384<P>
[src]
pub fn into_repr_raw(&self) -> BigInteger384
[src]
pub fn multiplicative_generator() -> Fp384<P>
[src]
pub fn root_of_unity() -> Fp384<P>
[src]
pub fn qnr_to_t() -> Self
[src]
pub fn size_in_bits() -> usize
[src]
pub fn trace() -> Self::BigInteger
[src]
pub fn trace_minus_one_div_two() -> Self::BigInteger
[src]
pub fn modulus_minus_one_div_two() -> Self::BigInteger
[src]
impl<P> Serialize for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl<P> SquareRootField for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn legendre(&self) -> LegendreSymbol
[src]
pub fn sqrt(&self) -> Option<Fp384<P>>
[src]
pub fn sqrt_in_place(&mut self) -> Option<&mut Fp384<P>>
[src]
impl<'a, P> Sub<&'a Fp384<P>> for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
type Output = Fp384<P>
The resulting type after applying the -
operator.
pub fn sub(self, other: &Fp384<P>) -> Fp384<P>
[src]
impl<'a, P> SubAssign<&'a Fp384<P>> for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
pub fn sub_assign(&mut self, other: &Fp384<P>)
[src]
impl<P> ToBytes for Fp384<P> where
P: Fp384Parameters,
[src]
P: Fp384Parameters,
impl<P> Zero 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<F> ToConstraintField<F> for F where
F: PrimeField,
[src]
F: PrimeField,
pub fn to_field_elements(&self) -> Result<Vec<F, Global>, ConstraintFieldError>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UniformRand for T where
Standard: Distribution<T>,
[src]
Standard: Distribution<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,