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§
Required Methods§
Sourcefn build(&self, vb: VarBuilder<'_>) -> Result<Self::Decoder, BoxedError>
fn build(&self, vb: VarBuilder<'_>) -> Result<Self::Decoder, BoxedError>
Build a decoder.