Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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

Blanket implementation for all Decode types