Trait SequentialDecoderFactory

Source
pub trait SequentialDecoderFactory {
    type Decoder<'a>: Decode + 'a
       where Self: 'a;

    // Required method
    fn new_decoder(&self) -> Result<Self::Decoder<'_>>;
}
Expand description

A trait providing decoders on the whole graph.

Required Associated Types§

Source

type Decoder<'a>: Decode + 'a where Self: 'a

Required Methods§

Source

fn new_decoder(&self) -> Result<Self::Decoder<'_>>

Creates a new reader starting at the given node.

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.

Implementations on Foreign Types§

Source§

impl<T: SequentialDecoderFactory + ?Sized> SequentialDecoderFactory for &T

Source§

type Decoder<'a> = <T as SequentialDecoderFactory>::Decoder<'a> where Self: 'a

Source§

fn new_decoder(&self) -> Result<Self::Decoder<'_>>

Source§

impl<T: SequentialDecoderFactory + ?Sized> SequentialDecoderFactory for Box<T>

Source§

type Decoder<'a> = <T as SequentialDecoderFactory>::Decoder<'a> where Self: 'a

Source§

fn new_decoder(&self) -> Result<Self::Decoder<'_>>

Implementors§

Source§

impl<E: Endianness, F: CodesReaderFactoryHelper<E>, OFF: IndexedSeq<Input = usize, Output = usize>> SequentialDecoderFactory for DynCodesDecoderFactory<E, F, OFF>

Source§

type Decoder<'a> = DynCodesDecoder<E, <F as CodesReaderFactory<E>>::CodesReader<'a>> where Self: 'a

Source§

impl<E: Endianness, F: CodesReaderFactoryHelper<E>, OFF: IndexedSeq<Input = usize, Output = usize>, const OUTDEGREES: usize, const REFERENCES: usize, const BLOCKS: usize, const INTERVALS: usize, const RESIDUALS: usize> SequentialDecoderFactory for ConstCodesDecoderFactory<E, F, OFF, OUTDEGREES, REFERENCES, BLOCKS, INTERVALS, RESIDUALS>

Source§

type Decoder<'a> = ConstCodesDecoder<E, <F as CodesReaderFactory<E>>::CodesReader<'a>> where Self: 'a