[][src]Enum believer::gf2::GF2

#[repr(u8)]
pub enum GF2 {
    B0,
    B1,
}

Variants

B0
B1

Methods

impl GF2[src]

pub fn from_u8(b: u8) -> Self[src]

Converts a 0_u8 or 1_u8 to the corresponding GF2 element.

Panics

If the input is neither 0_u8 or a 1_u8.

Trait Implementations

impl Clone for GF2[src]

impl PartialOrd<GF2> for GF2[src]

impl Copy for GF2[src]

impl Eq for GF2[src]

impl Ord for GF2[src]

impl PartialEq<GF2> for GF2[src]

impl Debug for GF2[src]

impl Add<GF2> for GF2[src]

type Output = Self

The resulting type after applying the + operator.

impl Mul<GF2> for GF2[src]

type Output = Self

The resulting type after applying the * operator.

impl One for GF2[src]

impl Zero for GF2[src]

Auto Trait Implementations

impl Send for GF2

impl Sync for GF2

impl Unpin for GF2

impl RefUnwindSafe for GF2

impl UnwindSafe for GF2

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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