Trait encdec::DecodeExt

source ·
pub trait DecodeExt<'a>: Decode<'a> {
    // Provided method
    fn decode_iter(buff: &'a [u8]) -> DecodeIter<'a, Self::Output>  { ... }
}
Expand description

Extensions to Decode trait for decodable objects

Provided Methods§

source

fn decode_iter(buff: &'a [u8]) -> DecodeIter<'a, Self::Output>

Helper to iterate over decodable objects in a sized buffer.

Note that objects must be -internally- sized as this is a greedy operation

Implementors§

source§

impl<'a, T> DecodeExt<'a> for Twhere T: Decode<'a>,

Blanket implementation for all Decode types