pub trait GroupElem: Clone + Eq {
const ONE: Self;
const SIZE: u128;
const ONE_256: [Self; 256] = _;
// Required method
fn multiply(&self, other: &Self) -> Self;
// Provided methods
fn pow(&self, n: u128) -> Self { ... }
fn inverse(&self) -> Self { ... }
fn order<S>(&self) -> u128
where Self: Factor<S> { ... }
}
Expand description
Types that represent the elements of a group. In order for a type to represent the elements of the group, the type must satisfy these axioms:
- The type has a binary operator (
multiply
). - The type must have a
const ONE
- Every element of the type must have element given by
inverse()
.
Required Associated Constants§
Provided Associated Constants§
sourceconst ONE_256: [Self; 256] = _
const ONE_256: [Self; 256] = _
👎Deprecated: To be replaced by inline
const
expressions once stabilized.! 256 copies of Self::ONE
in an array.