Trait Decoder

Source
pub trait Decoder<Output> {
    // Required method
    fn decode_limited(
        &self,
        bytes: &[u8],
        limit: usize,
    ) -> CoreResult<Vec<Output>>;

    // Provided method
    fn decode(&self, bytes: &[u8]) -> CoreResult<Vec<Output>> { ... }
}

Required Methods§

Source

fn decode_limited(&self, bytes: &[u8], limit: usize) -> CoreResult<Vec<Output>>

Provided Methods§

Source

fn decode(&self, bytes: &[u8]) -> CoreResult<Vec<Output>>

Implementors§

Source§

impl<P: Primitive, H> Decoder<H> for DecoderImpl<P, H>
where H: Decodable<P>,