pub struct P25Field;
Expand description
GF(26) field characterized by α6+α+1, as described in the P25 specification.
Trait Implementations§
Source§impl GaloisField for P25Field
impl GaloisField for P25Field
Source§fn valid_codeword(bits: u8) -> bool
fn valid_codeword(bits: u8) -> bool
Check if the given bit pattern is a valid codeword in the field.
Source§fn codeword_modded(pow: usize) -> u8
fn codeword_modded(pow: usize) -> u8
Map the given power i to codeword αm ≡ αi (modulo the size
of the field.)
impl Copy for P25Field
Auto Trait Implementations§
impl Freeze for P25Field
impl RefUnwindSafe for P25Field
impl Send for P25Field
impl Sync for P25Field
impl Unpin for P25Field
impl UnwindSafe for P25Field
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