Trait encdec_base::decode::DecodeExt
source · [−]pub trait DecodeExt<'a>: Decode<'a> {
fn decode_iter(buff: &'a [u8]) -> DecodeIter<'a, Self::Output>ⓘNotable traits for DecodeIter<'a, T>impl<'a, T> Iterator for DecodeIter<'a, T>where
T: Decode<'a, Output = T>,
<T as Decode<'a>>::Error: From<Error> + Debug, type Item = Result<T, <T as Decode<'a>>::Error>; { ... }
}Expand description
Decode trait extensions
Provided Methods
sourcefn decode_iter(buff: &'a [u8]) -> DecodeIter<'a, Self::Output>ⓘNotable traits for DecodeIter<'a, T>impl<'a, T> Iterator for DecodeIter<'a, T>where
T: Decode<'a, Output = T>,
<T as Decode<'a>>::Error: From<Error> + Debug, type Item = Result<T, <T as Decode<'a>>::Error>;
fn decode_iter(buff: &'a [u8]) -> DecodeIter<'a, Self::Output>ⓘNotable traits for DecodeIter<'a, T>impl<'a, T> Iterator for DecodeIter<'a, T>where
T: Decode<'a, Output = T>,
<T as Decode<'a>>::Error: From<Error> + Debug, type Item = Result<T, <T as Decode<'a>>::Error>;
T: Decode<'a, Output = T>,
<T as Decode<'a>>::Error: From<Error> + Debug, type Item = Result<T, <T as Decode<'a>>::Error>;
Helper to iterate over decodable objects in a sized buffer.
Note that objects must be -internally- sized as this is a greedy operation