Trait CodesReaderFactory

Source
pub trait CodesReaderFactory<E: Endianness> {
    type CodesReader<'a>
       where Self: 'a;

    // Required method
    fn new_reader(&self) -> Self::CodesReader<'_>;
}
Expand description

A trait that models a type that can return a CodesRead that can reference data owned by the factory. The typical case is a factory that owns the bit stream, and returns a CodesRead that can read from it.

Required Associated Types§

Source

type CodesReader<'a> where Self: 'a

Required Methods§

Source

fn new_reader(&self) -> Self::CodesReader<'_>

Create a new code reader that can reference data owned by the factory.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§