[][src]Trait codicon::Decoder

pub trait Decoder<T>: Sized {
    type Error;
    fn decode(reader: impl Read, params: T) -> Result<Self, Self::Error>;
}

Trait used to express decoding relationships.

Associated Types

type Error

Loading content...

Required methods

fn decode(reader: impl Read, params: T) -> Result<Self, Self::Error>

Decodes from the reader with the given parameters.

Loading content...

Implementors

Loading content...