Struct bytecodec::combinator::CollectN [−][src]
pub struct CollectN<D, T> { /* fields omitted */ }
Expand description
Combinator for decoding the specified number of items and collecting the result.
This is created by calling DecodeExt::collectn
method.
Implementations
Returns the number of remaining items expected to be decoded.
Sets the number of remaining items expected to be decoded.
Takes ownership of this instance and returns the inner decoder.
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 CollectN<D, T> where
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<D, T> UnwindSafe for CollectN<D, T> where
D: UnwindSafe,
T: UnwindSafe,