Struct snarkvm_wasm::Fp3 [−][src]
Fields
c0: <P as Fp3Parameters>::Fpc1: <P as Fp3Parameters>::Fpc2: <P as Fp3Parameters>::FpImplementations
impl<P> Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
pub fn new(
c0: <P as Fp3Parameters>::Fp,
c1: <P as Fp3Parameters>::Fp,
c2: <P as Fp3Parameters>::Fp
) -> Fp3<P>[src]
c0: <P as Fp3Parameters>::Fp,
c1: <P as Fp3Parameters>::Fp,
c2: <P as Fp3Parameters>::Fp
) -> Fp3<P>
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]
P: Fp3Parameters,
type Output = Fp3<P>
The resulting type after applying the + operator.
pub fn add(self, other: &Fp3<P>) -> Fp3<P>[src]
impl<'a, P> AddAssign<&'a Fp3<P>> for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
pub fn add_assign(&mut self, other: &Fp3<P>)[src]
impl<P> CanonicalDeserialize for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
pub fn deserialize<R>(reader: &mut R) -> Result<Fp3<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 Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
pub fn deserialize_with_flags<R, F>(
reader: &mut R
) -> Result<(Fp3<P>, F), SerializationError> where
R: Read,
F: Flags, [src]
reader: &mut R
) -> Result<(Fp3<P>, F), SerializationError> where
R: Read,
F: Flags,
impl<P> CanonicalSerialize for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
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 Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
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 Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
impl<P> ConstantSerializedSize for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
pub const SERIALIZED_SIZE: usize[src]
pub const UNCOMPRESSED_SIZE: usize[src]
impl<P> Copy for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
impl<P> Debug for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
impl<P> Default for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
impl<'de, P> Deserialize<'de> for Fp3<P> where
P: Fp3Parameters,
<P as Fp3Parameters>::Fp: Deserialize<'de>, [src]
P: Fp3Parameters,
<P as Fp3Parameters>::Fp: Deserialize<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Fp3<P>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
__deserializer: __D
) -> Result<Fp3<P>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<P> Display for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
impl<'a, P> Div<&'a Fp3<P>> for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
type Output = Fp3<P>
The resulting type after applying the / operator.
pub fn div(self, other: &Fp3<P>) -> Fp3<P>[src]
impl<'a, P> DivAssign<&'a Fp3<P>> for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
pub fn div_assign(&mut self, other: &Fp3<P>)[src]
impl<P> Eq for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
impl<P> Field for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
pub fn characteristic<'a>() -> &'a [u64]ⓘ[src]
pub fn double(&self) -> Fp3<P>[src]
pub fn double_in_place(&mut self) -> &mut Fp3<P>[src]
pub fn from_random_bytes_with_flags(bytes: &[u8]) -> Option<(Fp3<P>, u8)>[src]
pub fn from_random_bytes(bytes: &[u8]) -> Option<Fp3<P>>[src]
pub fn square(&self) -> Fp3<P>[src]
pub fn square_in_place(&mut self) -> &mut Fp3<P>[src]
pub fn inverse(&self) -> Option<Fp3<P>>[src]
pub fn inverse_in_place(&mut self) -> Option<&mut Fp3<P>>[src]
pub fn frobenius_map(&mut self, power: usize)[src]
pub fn pow<S>(&self, exp: S) -> Self where
S: AsRef<[u64]>, [src]
S: AsRef<[u64]>,
impl<P> From<u128> for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
impl<P> From<u16> for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
impl<P> From<u32> for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
impl<P> From<u64> for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
impl<P> From<u8> for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
impl<P> FromBytes for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
impl<P> FromStr for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
type Err = ()
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<Fp3<P>, <Fp3<P> as FromStr>::Err>[src]
impl<P> Hash for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
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<'a, P> Mul<&'a Fp3<P>> for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
type Output = Fp3<P>
The resulting type after applying the * operator.
pub fn mul(self, other: &Fp3<P>) -> Fp3<P>[src]
impl<'a, P> MulAssign<&'a Fp3<P>> for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
pub fn mul_assign(&mut self, other: &Fp3<P>)[src]
impl<P> Neg for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
type Output = Fp3<P>
The resulting type after applying the - operator.
pub fn neg(self) -> Fp3<P>[src]
impl<P> One for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
impl<P> Ord for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
Fp3 elements are ordered lexicographically.
pub fn cmp(&self, other: &Fp3<P>) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl<P> PartialEq<Fp3<P>> for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
pub fn eq(&self, other: &Fp3<P>) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<P> PartialOrd<Fp3<P>> for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
pub fn partial_cmp(&self, other: &Fp3<P>) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<P> Serialize for Fp3<P> where
P: Fp3Parameters,
<P as Fp3Parameters>::Fp: Serialize, [src]
P: Fp3Parameters,
<P as Fp3Parameters>::Fp: Serialize,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, [src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<P> SquareRootField for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
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]
P: Fp3Parameters,
type Output = Fp3<P>
The resulting type after applying the - operator.
pub fn sub(self, other: &Fp3<P>) -> Fp3<P>[src]
impl<'a, P> SubAssign<&'a Fp3<P>> for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
pub fn sub_assign(&mut self, other: &Fp3<P>)[src]
impl<P> ToBytes for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
impl<P> Zero for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
Auto Trait Implementations
impl<P> RefUnwindSafe for Fp3<P> where
P: RefUnwindSafe,
<P as Fp3Parameters>::Fp: RefUnwindSafe,
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,
P: Unpin,
<P as Fp3Parameters>::Fp: Unpin,
impl<P> UnwindSafe for Fp3<P> where
P: UnwindSafe,
<P as Fp3Parameters>::Fp: UnwindSafe,
P: UnwindSafe,
<P as Fp3Parameters>::Fp: 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<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>,