Skip to main content

GF2

Struct GF2 

Source
pub struct GF2(/* private fields */);
Expand description

Finite field GF(2) element.

This struct represents an element of the finite field GF(2).

Trait Implementations§

Source§

impl Add for GF2

Source§

type Output = GF2

The resulting type after applying the + operator.
Source§

fn add(self, rhs: GF2) -> GF2

Performs the + operation. Read more
Source§

impl Add<&GF2> for GF2

Source§

type Output = GF2

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &GF2) -> GF2

Performs the + operation. Read more
Source§

impl AddAssign for GF2

Source§

fn add_assign(&mut self, rhs: GF2)

Performs the += operation. Read more
Source§

impl AddAssign<&GF2> for GF2

Source§

fn add_assign(&mut self, rhs: &GF2)

Performs the += operation. Read more
Source§

impl Clone for GF2

Source§

fn clone(&self) -> GF2

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for GF2

Source§

impl Debug for GF2

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for GF2

Source§

fn default() -> GF2

Returns the “default value” for a type. Read more
Source§

impl Div for GF2

Source§

type Output = GF2

The resulting type after applying the / operator.
Source§

fn div(self, rhs: GF2) -> GF2

Performs the / operation. Read more
Source§

impl Div<&GF2> for GF2

Source§

type Output = GF2

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &GF2) -> GF2

Performs the / operation. Read more
Source§

impl DivAssign for GF2

Source§

fn div_assign(&mut self, rhs: GF2)

Performs the /= operation. Read more
Source§

impl DivAssign<&GF2> for GF2

Source§

fn div_assign(&mut self, rhs: &GF2)

Performs the /= operation. Read more
Source§

impl Eq for GF2

Source§

impl Hash for GF2

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Mul for GF2

Source§

type Output = GF2

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: GF2) -> GF2

Performs the * operation. Read more
Source§

impl Mul<&GF2> for GF2

Source§

type Output = GF2

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &GF2) -> GF2

Performs the * operation. Read more
Source§

impl MulAssign for GF2

Source§

fn mul_assign(&mut self, rhs: GF2)

Performs the *= operation. Read more
Source§

impl MulAssign<&GF2> for GF2

Source§

fn mul_assign(&mut self, rhs: &GF2)

Performs the *= operation. Read more
Source§

impl One for GF2

Source§

fn one() -> GF2

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

fn is_one(&self) -> bool

Returns true if self is equal to the multiplicative identity. Read more
Source§

impl PartialEq for GF2

Source§

fn eq(&self, other: &GF2) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl ScalarOperand for GF2

Source§

impl StructuralPartialEq for GF2

Source§

impl Sub for GF2

Source§

type Output = GF2

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: GF2) -> GF2

Performs the - operation. Read more
Source§

impl Sub<&GF2> for GF2

Source§

type Output = GF2

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &GF2) -> GF2

Performs the - operation. Read more
Source§

impl SubAssign for GF2

Source§

fn sub_assign(&mut self, rhs: GF2)

Performs the -= operation. Read more
Source§

impl SubAssign<&GF2> for GF2

Source§

fn sub_assign(&mut self, rhs: &GF2)

Performs the -= operation. Read more
Source§

impl Sum for GF2

Source§

fn sum<I>(iter: I) -> GF2
where I: Iterator<Item = GF2>,

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Zero for GF2

Source§

fn zero() -> GF2

Returns the additive identity element of Self, 0. Read more
Source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
Source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> LinalgScalar for T
where T: One<Output = T> + Add<Output = T> + Sub<Output = T> + 'static + Mul + Copy + Div<Output = T> + Zero,

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V