[][src]Struct bytecodec::combinator::Map

pub struct Map<D, T, F> { /* fields omitted */ }

Combinator for converting decoded items to other values.

This is created by calling DecodeExt::map method.

Methods

impl<D: Decode, T, F> Map<D, T, F>[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, T: Debug, F: Debug> Debug for Map<D, T, F>[src]

impl<D, T, F> Decode for Map<D, T, F> where
    D: Decode,
    F: Fn(D::Item) -> T, 
[src]

type Item = T

The type of items to be decoded.

Auto Trait Implementations

impl<D, T, F> RefUnwindSafe for Map<D, T, F> where
    D: RefUnwindSafe,
    F: RefUnwindSafe,
    T: RefUnwindSafe

impl<D, T, F> Send for Map<D, T, F> where
    D: Send,
    F: Send,
    T: Send

impl<D, T, F> Sync for Map<D, T, F> where
    D: Sync,
    F: Sync,
    T: Sync

impl<D, T, F> Unpin for Map<D, T, F> where
    D: Unpin,
    F: Unpin,
    T: Unpin

impl<D, T, F> UnwindSafe for Map<D, T, F> where
    D: UnwindSafe,
    F: UnwindSafe,
    T: 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.