[][src]Struct bytecodec::combinator::AndThen

pub struct AndThen<D0, D1, F> { /* fields omitted */ }

Combinator for conditional decoding.

If the first item is successfully decoded, it will start decoding the second item by using the decoder returned by f function.

This is created by calling DecodeExt::and_then method.

Trait Implementations

impl<D0: Debug, D1: Debug, F: Debug> Debug for AndThen<D0, D1, F>[src]

impl<D0, D1, F> Decode for AndThen<D0, D1, F> where
    D0: Decode,
    D1: Decode,
    F: Fn(D0::Item) -> D1, 
[src]

type Item = D1::Item

The type of items to be decoded.

Auto Trait Implementations

impl<D0, D1, F> RefUnwindSafe for AndThen<D0, D1, F> where
    D0: RefUnwindSafe,
    D1: RefUnwindSafe,
    F: RefUnwindSafe

impl<D0, D1, F> Send for AndThen<D0, D1, F> where
    D0: Send,
    D1: Send,
    F: Send

impl<D0, D1, F> Sync for AndThen<D0, D1, F> where
    D0: Sync,
    D1: Sync,
    F: Sync

impl<D0, D1, F> Unpin for AndThen<D0, D1, F> where
    D0: Unpin,
    D1: Unpin,
    F: Unpin

impl<D0, D1, F> UnwindSafe for AndThen<D0, D1, F> where
    D0: UnwindSafe,
    D1: UnwindSafe,
    F: 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.