Struct p25::coding::galois::P25Field
[−]
[src]
pub struct P25Field;
GF(26) field characterized by α6+α+1, as described in the P25 specification.
Trait Implementations
impl Copy for P25Field
[src]
impl Clone for P25Field
[src]
fn clone(&self) -> P25Field
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for P25Field
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl GaloisField for P25Field
[src]
fn size() -> usize
[src]
Number of unique codewords in the field: 2r - 1.
fn valid_codeword(bits: u8) -> bool
[src]
Check if the given bit pattern is a valid codeword in the field.
fn codeword(pow: usize) -> u8
[src]
Map the given power i to codeword αi.
fn power(codeword: usize) -> usize
[src]
Map the given codeword ai to its power i.
fn codeword_modded(pow: usize) -> u8
[src]
Map the given power i to codeword αm ≡ αi (modulo the size of the field.) Read more