[][src]Struct bytecodec::combinator::MaybeEos

pub struct MaybeEos<D> { /* fields omitted */ }

Combinator for ignoring EOS if there is no item being decoded.

This is created by calling DecodeExt::maybe_eos.

Methods

impl<D> MaybeEos<D>[src]

pub fn inner_ref(&self) -> &D[src]

Returns a reference to the inner decoder.

pub fn inner_mut(&mut self) -> &mut D[src]

Returns a mutable reference to the inner decoder.

pub fn into_inner(self) -> D[src]

Takes ownership of this instance and returns the inner decoder.

Trait Implementations

impl<D: Debug> Debug for MaybeEos<D>[src]

impl<D: Decode> Decode for MaybeEos<D>[src]

type Item = D::Item

The type of items to be decoded.

impl<D: Default> Default for MaybeEos<D>[src]

Auto Trait Implementations

impl<D> RefUnwindSafe for MaybeEos<D> where
    D: RefUnwindSafe

impl<D> Send for MaybeEos<D> where
    D: Send

impl<D> Sync for MaybeEos<D> where
    D: Sync

impl<D> Unpin for MaybeEos<D> where
    D: Unpin

impl<D> UnwindSafe for MaybeEos<D> where
    D: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IoDecodeExt for T where
    T: Decode
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.