FormatDecoderDyn

Trait FormatDecoderDyn 

Source
pub trait FormatDecoderDyn<V, E = Box<dyn Error>> {
    // Required method
    fn decode_dyn(&mut self, reader: &mut dyn Read) -> Result<V, E>;
}
Expand description

A trait object version of FormatDecoder for dynamic dispatch

Required Methods§

Source

fn decode_dyn(&mut self, reader: &mut dyn Read) -> Result<V, E>

Decodes a value from the provided reader

Implementors§

Source§

impl<T, V, E> FormatDecoderDyn<V, E> for T
where T: FormatDecoder<V> + ?Sized, T::DecodeError: Into<E>,