Trait BuildDecoder

Source
pub trait BuildDecoder: Debug {
    type Decoder: Decoder;

    // Required method
    fn build(&self, vb: VarBuilder<'_>) -> Result<Self::Decoder, BoxedError>;
}
Expand description

Trait for building decoders.

Required Associated Types§

Source

type Decoder: Decoder

Decoder type.

Required Methods§

Source

fn build(&self, vb: VarBuilder<'_>) -> Result<Self::Decoder, BoxedError>

Build a decoder.

Implementors§