Struct bytecodec::combinator::Peekable [−][src]
pub struct Peekable<D: Decode> { /* fields omitted */ }
Expand description
Combinator that enables to peek decoded items before calling finish_decoding
method.
This is created by calling DecodeExt::peekable
method.
Implementations
Returns a reference to the last item decoded (but not finish_decoding
called yet) by the decoder.
Returns a mutable reference to the last item decoded (but not finish_decoding
called yet) by the decoder.
Takes ownership of this instance and returns the inner decoder.
Trait Implementations
Auto Trait Implementations
impl<D> RefUnwindSafe for Peekable<D> where
D: RefUnwindSafe,
<D as Decode>::Item: RefUnwindSafe,
impl<D> UnwindSafe for Peekable<D> where
D: UnwindSafe,
<D as Decode>::Item: UnwindSafe,