Struct bytecodec::combinator::Collect [−][src]
pub struct Collect<D, T> { /* fields omitted */ }
Expand description
Combinator for collecting decoded items.
Collect
decodes all items until it reaches EOS
and returns the collected items as the single decoded item.
This is created by calling DecodeExt::collect
method.
Implementations
Trait Implementations
type Item = T
type Item = T
The type of items to be decoded.
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
Finishes the current decoding process and returns the decoded item. Read more
Returns the lower bound of the number of bytes needed to decode the next item. Read more
Auto Trait Implementations
impl<D, T> RefUnwindSafe for Collect<D, T> where
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<D, T> UnwindSafe for Collect<D, T> where
D: UnwindSafe,
T: UnwindSafe,