pub struct CM31(pub M31, pub M31);Expand description
Complex extension field of M31. Equivalent to M31[x] over (x^2 + 1) as the irreducible polynomial. Represented as (a, b) of a + bi.
Tuple Fields§
§0: M31§1: M31Implementations§
Trait Implementations§
Source§impl AddAssign for CM31
impl AddAssign for CM31
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl AddAssign<M31> for CM31
impl AddAssign<M31> for CM31
Source§fn add_assign(&mut self, rhs: M31)
fn add_assign(&mut self, rhs: M31)
Performs the
+= operation. Read moreSource§impl ComplexConjugate for CM31
impl ComplexConjugate for CM31
Source§fn complex_conjugate(&self) -> Self
fn complex_conjugate(&self) -> Self
Example Read more
impl Copy for CM31
Source§impl<'de> Deserialize<'de> for CM31
impl<'de> Deserialize<'de> for CM31
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Distribution<CM31> for Standard
impl Distribution<CM31> for Standard
Source§impl DivAssign for CM31
impl DivAssign for CM31
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/= operation. Read moreSource§impl DivAssign<M31> for CM31
impl DivAssign<M31> for CM31
Source§fn div_assign(&mut self, rhs: M31)
fn div_assign(&mut self, rhs: M31)
Performs the
/= operation. Read moreimpl Eq for CM31
Source§impl ExtensionOf<M31> for CM31
impl ExtensionOf<M31> for CM31
const EXTENSION_DEGREE: usize
Source§impl FieldExpOps for CM31
impl FieldExpOps for CM31
Source§impl MulAssign for CM31
impl MulAssign for CM31
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moreSource§impl MulAssign<M31> for CM31
impl MulAssign<M31> for CM31
Source§fn mul_assign(&mut self, rhs: M31)
fn mul_assign(&mut self, rhs: M31)
Performs the
*= operation. Read moreSource§impl Num for CM31
impl Num for CM31
type FromStrRadixErr = Box<dyn Error>
Source§fn from_str_radix(
_str: &str,
_radix: u32,
) -> Result<Self, Self::FromStrRadixErr>
fn from_str_radix( _str: &str, _radix: u32, ) -> Result<Self, Self::FromStrRadixErr>
Convert from a string and radix (typically
2..=36). Read moreSource§impl Ord for CM31
impl Ord for CM31
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for CM31
impl PartialOrd for CM31
Source§impl RemAssign for CM31
impl RemAssign for CM31
Source§fn rem_assign(&mut self, _rhs: Self)
fn rem_assign(&mut self, _rhs: Self)
Performs the
%= operation. Read moreSource§impl RemAssign<M31> for CM31
impl RemAssign<M31> for CM31
Source§fn rem_assign(&mut self, _rhs: M31)
fn rem_assign(&mut self, _rhs: M31)
Performs the
%= operation. Read moreimpl StructuralPartialEq for CM31
Source§impl SubAssign for CM31
impl SubAssign for CM31
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreSource§impl SubAssign<M31> for CM31
impl SubAssign<M31> for CM31
Source§fn sub_assign(&mut self, rhs: M31)
fn sub_assign(&mut self, rhs: M31)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for CM31
impl RefUnwindSafe for CM31
impl Send for CM31
impl Sync for CM31
impl Unpin for CM31
impl UnsafeUnpin for CM31
impl UnwindSafe for CM31
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<F> ExtensionOf<F> for Fwhere
F: Field,
impl<F> ExtensionOf<F> for Fwhere
F: Field,
const EXTENSION_DEGREE: usize = const EXTENSION_DEGREE: usize = 1;
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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