Trait codicon::Decoder [−][src]
pub trait Decoder<T, E = Error>: Sized { fn decode<R: Read>(reader: &mut R, params: T) -> Result<Self, E>; }
Trait used to express decoding relationships.
Required Methods
fn decode<R: Read>(reader: &mut R, params: T) -> Result<Self, E>
Decodes from the reader with the given parameters.