Struct galois_field::FiniteField
source · [−]Expand description
FiniteField
Fields
char: u32
element: Element
Implementations
sourceimpl FiniteField
impl FiniteField
sourcepub fn get_0(&self) -> FiniteField
pub fn get_0(&self) -> FiniteField
Obtain the 0 of the finite field. There are two types of finite fields: prime field and galois field. This get_0 function is performed on a finite field type to automatically determine which type it is and obtain the 0.
sourcepub fn get_1(&self) -> FiniteField
pub fn get_1(&self) -> FiniteField
Obtain the 1 of the finite field. There are two types of finite fields: prime field and galois field. This get_1 function is performed on a finite field type to automatically determine which type it is and obtain the 1.
Trait Implementations
sourceimpl Add<FiniteField> for FiniteField
impl Add<FiniteField> for FiniteField
type Output = FiniteField
type Output = FiniteField
The resulting type after applying the
+
operator.sourcefn add(self, other: FiniteField) -> FiniteField
fn add(self, other: FiniteField) -> FiniteField
Performs the
+
operation. Read moresourceimpl Clone for FiniteField
impl Clone for FiniteField
sourcefn clone(&self) -> FiniteField
fn clone(&self) -> FiniteField
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FiniteField
impl Debug for FiniteField
sourceimpl Div<FiniteField> for FiniteField
impl Div<FiniteField> for FiniteField
type Output = FiniteField
type Output = FiniteField
The resulting type after applying the
/
operator.sourcefn div(self, other: FiniteField) -> FiniteField
fn div(self, other: FiniteField) -> FiniteField
Performs the
/
operation. Read moresourceimpl Mul<FiniteField> for FiniteField
impl Mul<FiniteField> for FiniteField
type Output = FiniteField
type Output = FiniteField
The resulting type after applying the
*
operator.sourcefn mul(self, other: FiniteField) -> FiniteField
fn mul(self, other: FiniteField) -> FiniteField
Performs the
*
operation. Read moresourceimpl Neg for FiniteField
impl Neg for FiniteField
type Output = FiniteField
type Output = FiniteField
The resulting type after applying the
-
operator.sourcefn neg(self) -> FiniteField
fn neg(self) -> FiniteField
Performs the unary
-
operation. Read moresourceimpl Sub<FiniteField> for FiniteField
impl Sub<FiniteField> for FiniteField
type Output = FiniteField
type Output = FiniteField
The resulting type after applying the
-
operator.sourcefn sub(self, other: FiniteField) -> FiniteField
fn sub(self, other: FiniteField) -> FiniteField
Performs the
-
operation. Read moreAuto Trait Implementations
impl RefUnwindSafe for FiniteField
impl Send for FiniteField
impl Sync for FiniteField
impl Unpin for FiniteField
impl UnwindSafe for FiniteField
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