Struct snarkvm_wasm::fp6_2over3::Fp6 [−][src]
Fields
c0: Fp3<<P as Fp6Parameters>::Fp3Params>
c1: Fp3<<P as Fp6Parameters>::Fp3Params>
Implementations
impl<P> Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
pub fn new(
c0: Fp3<<P as Fp6Parameters>::Fp3Params>,
c1: Fp3<<P as Fp6Parameters>::Fp3Params>
) -> Fp6<P>
[src]
c0: Fp3<<P as Fp6Parameters>::Fp3Params>,
c1: Fp3<<P as Fp6Parameters>::Fp3Params>
) -> Fp6<P>
pub fn conjugate(&mut self)
[src]
pub fn mul_by_034(
&mut self,
c0: &<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp,
c3: &<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp,
c4: &<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp
)
[src]
&mut self,
c0: &<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp,
c3: &<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp,
c4: &<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp
)
pub fn mul_by_014(
&mut self,
c0: &<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp,
c1: &<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp,
c4: &<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp
)
[src]
&mut self,
c0: &<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp,
c1: &<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp,
c4: &<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp
)
pub fn mul_by_nonresidue(
value: &Fp3<<P as Fp6Parameters>::Fp3Params>
) -> Fp3<<P as Fp6Parameters>::Fp3Params>
[src]
value: &Fp3<<P as Fp6Parameters>::Fp3Params>
) -> Fp3<<P as Fp6Parameters>::Fp3Params>
Multiply by quadratic nonresidue v.
pub fn unitary_inverse(&self) -> Fp6<P>
[src]
pub fn cyclotomic_exp<B>(&self, exponent: &B) -> Fp6<P> where
B: BigInteger,
[src]
B: BigInteger,
Trait Implementations
impl<'a, P> Add<&'a Fp6<P>> for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
type Output = Fp6<P>
The resulting type after applying the +
operator.
pub fn add(self, other: &Fp6<P>) -> Fp6<P>
[src]
impl<'a, P> AddAssign<&'a Fp6<P>> for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
pub fn add_assign(&mut self, other: &Fp6<P>)
[src]
impl<P> CanonicalDeserialize for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
pub fn deserialize<R>(reader: &mut R) -> Result<Fp6<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 Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
pub fn deserialize_with_flags<R, F>(
reader: &mut R
) -> Result<(Fp6<P>, F), SerializationError> where
R: Read,
F: Flags,
[src]
reader: &mut R
) -> Result<(Fp6<P>, F), SerializationError> where
R: Read,
F: Flags,
impl<P> CanonicalSerialize for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
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 Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
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 Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
impl<P> ConstantSerializedSize for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
pub const SERIALIZED_SIZE: usize
[src]
pub const UNCOMPRESSED_SIZE: usize
[src]
impl<P> Copy for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
impl<P> Debug for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
impl<P> Default for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
impl<'de, P> Deserialize<'de> for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Fp6<P>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Fp6<P>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<P> Display for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
impl<'a, P> Div<&'a Fp6<P>> for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
type Output = Fp6<P>
The resulting type after applying the /
operator.
pub fn div(self, other: &Fp6<P>) -> Fp6<P>
[src]
impl<'a, P> DivAssign<&'a Fp6<P>> for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
pub fn div_assign(&mut self, other: &Fp6<P>)
[src]
impl<P> Eq for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
impl<P> Field for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
pub fn characteristic<'a>() -> &'a [u64]ⓘ
[src]
pub fn double(&self) -> Fp6<P>
[src]
pub fn double_in_place(&mut self) -> &mut Fp6<P>
[src]
pub fn square(&self) -> Fp6<P>
[src]
pub fn from_random_bytes_with_flags(bytes: &[u8]) -> Option<(Fp6<P>, u8)>
[src]
pub fn from_random_bytes(bytes: &[u8]) -> Option<Fp6<P>>
[src]
pub fn square_in_place(&mut self) -> &mut Fp6<P>
[src]
pub fn inverse(&self) -> Option<Fp6<P>>
[src]
pub fn inverse_in_place(&mut self) -> Option<&mut Fp6<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<'a, P> From<&'a [bool]> for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
impl<P> From<u128> for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
impl<P> From<u16> for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
impl<P> From<u32> for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
impl<P> From<u64> for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
impl<P> From<u8> for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
impl<P> FromBytes for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
impl<P> Hash for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
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 Fp6<P>> for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
type Output = Fp6<P>
The resulting type after applying the *
operator.
pub fn mul(self, other: &Fp6<P>) -> Fp6<P>
[src]
impl<'a, P> MulAssign<&'a Fp6<P>> for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
pub fn mul_assign(&mut self, other: &Fp6<P>)
[src]
impl<P> Neg for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
type Output = Fp6<P>
The resulting type after applying the -
operator.
pub fn neg(self) -> Fp6<P>
[src]
impl<P> One for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
impl<P> Ord for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
Fp6
elements are ordered lexicographically.
pub fn cmp(&self, other: &Fp6<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<Fp6<P>> for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
pub fn eq(&self, other: &Fp6<P>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<P> PartialOrd<Fp6<P>> for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
pub fn partial_cmp(&self, other: &Fp6<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> Serialize for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
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<'a, P> Sub<&'a Fp6<P>> for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
type Output = Fp6<P>
The resulting type after applying the -
operator.
pub fn sub(self, other: &Fp6<P>) -> Fp6<P>
[src]
impl<'a, P> SubAssign<&'a Fp6<P>> for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
pub fn sub_assign(&mut self, other: &Fp6<P>)
[src]
impl<P> ToBytes for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
impl<P> Zero for Fp6<P> where
P: Fp6Parameters,
[src]
P: Fp6Parameters,
Auto Trait Implementations
impl<P> RefUnwindSafe for Fp6<P> where
P: RefUnwindSafe,
<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp: RefUnwindSafe,
<P as Fp6Parameters>::Fp3Params: RefUnwindSafe,
P: RefUnwindSafe,
<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp: RefUnwindSafe,
<P as Fp6Parameters>::Fp3Params: RefUnwindSafe,
impl<P> Send for Fp6<P>
impl<P> Sync for Fp6<P>
impl<P> Unpin for Fp6<P> where
P: Unpin,
<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp: Unpin,
<P as Fp6Parameters>::Fp3Params: Unpin,
P: Unpin,
<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp: Unpin,
<P as Fp6Parameters>::Fp3Params: Unpin,
impl<P> UnwindSafe for Fp6<P> where
P: UnwindSafe,
<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp: UnwindSafe,
<P as Fp6Parameters>::Fp3Params: UnwindSafe,
P: UnwindSafe,
<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp: UnwindSafe,
<P as Fp6Parameters>::Fp3Params: 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>,