Enum galois_field::Element
source · [−]pub enum Element {
PrimeField {
element: i64,
},
GaloisField {
element: Vec<i64>,
primitive_polynomial: Polynomial,
},
}
Expand description
Element of finite field. enum Element has two variants: PrimeField and GaloisField.
PrimeField
PrimeField is a field that has prime number as its characteristic.
Example: Z/2Z, Z/3Z, Z/5Z, …
GaloisField
GaloisField is a field that has prime power as its characteristic.
Example: GF(2^2), GF(5^3), …
Variants
PrimeField
Fields
element: i64
GaloisField
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more