[][src]Trait believer::generators::CodeGenerator

pub trait CodeGenerator: Sync + Send {
    fn generate_with_rng<R: Rng>(&self, rng: &mut R) -> ParityCheckMatrix;

    fn generate(&self) -> ParityCheckMatrix { ... }
}

Required methods

fn generate_with_rng<R: Rng>(&self, rng: &mut R) -> ParityCheckMatrix

Returns a code generated using the given random number generator rng.

Loading content...

Provided methods

fn generate(&self) -> ParityCheckMatrix

Returns a code generated using the thread rng.

Loading content...

Implementors

impl CodeGenerator for Generator[src]

impl CodeGenerator for IncreasingRangeCodeGenerator[src]

fn generate_with_rng<R: Rng>(&self, rng: &mut R) -> ParityCheckMatrix[src]

Returns a code generated by the generator.

impl CodeGenerator for RegularLDPCCodeGenerator[src]

Loading content...