pub struct GF2(/* private fields */);Expand description
Element of the Galois field GF(2) = {0, 1}.
The smallest finite field. Addition is XOR, multiplication is AND. Every nonzero element is its own inverse (both additive and multiplicative).
Implementations§
Trait Implementations§
Source§impl AddAssign for GF2
impl AddAssign for GF2
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl MulAssign for GF2
impl MulAssign for GF2
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moreSource§impl SubAssign for GF2
impl SubAssign for GF2
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for GF2
impl Eq for GF2
impl StructuralPartialEq for GF2
Auto Trait Implementations§
impl Freeze for GF2
impl RefUnwindSafe for GF2
impl Send for GF2
impl Sync for GF2
impl Unpin for GF2
impl UnsafeUnpin for GF2
impl UnwindSafe for GF2
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