pub struct Field;
Expand description
The field GF(2^16).
Trait Implementations§
Source§impl Field for Field
impl Field for Field
Source§const ORDER: usize = 65_536usize
const ORDER: usize = 65_536usize
The order of the field. This is a limit on the number of shards
in an encoding.
fn nth_internal(n: usize) -> [u8; 2]
Source§fn nth(n: usize) -> Self::Elem
fn nth(n: usize) -> Self::Elem
Yield the nth element of the field. Panics if n >= ORDER.
Assignment is arbitrary but must be unique to
n
.impl Copy for Field
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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