Trait LFSR

Source
pub trait LFSR {
    // Required methods
    fn get_state(&self) -> u32;
    fn inc(&mut self);
    fn dec(&mut self);
    fn sequence_length(&self) -> u32;
}
Expand description

An object-safe part of the LFSR trait that allows to count up, down and get a current state

Required Methods§

Source

fn get_state(&self) -> u32

Retrieves the current state of the LFSR

Source

fn inc(&mut self)

Count up

Source

fn dec(&mut self)

Count down

Source

fn sequence_length(&self) -> u32

Sequence length of this LFSR

Implementors§