pub enum CodeWord {
W8,
W16,
W32,
Other(u8),
}Expand description
The CodeWord is used to represent the size of the code word in bits.
The CodeWord enum defines the possible code words that can be used in galois fied.
And the default value is W8, which is the most common code word size.
Variants§
W8
A code word of 1 Byte.
W16
A code word of 2 Bytes.
W32
A code word of 4 Bytes.
Other(u8)
A code word of other size in bits.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodeWord
impl RefUnwindSafe for CodeWord
impl Send for CodeWord
impl Sync for CodeWord
impl Unpin for CodeWord
impl UnsafeUnpin for CodeWord
impl UnwindSafe for CodeWord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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