Struct bytecodec::combinator::TryMap [] [src]

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

Combinator which tries to convert decoded values by calling the specified function.

This is created by calling DecodeExt::try_map method.

Trait Implementations

impl<D: Debug, F: Debug, T: Debug, E: Debug> Debug for TryMap<D, F, T, E>
[src]

[src]

Formats the value using the given formatter. Read more

impl<D, F, T, E> Decode for TryMap<D, F, T, E> where
    D: Decode,
    F: Fn(D::Item) -> Result<T, E>,
    Error: From<E>, 
[src]

The type of items to be decoded.

[src]

Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more

[src]

Returns the lower bound of the number of bytes needed to decode the next item. Read more

Auto Trait Implementations

impl<D, F, T, E> Send for TryMap<D, F, T, E> where
    D: Send,
    E: Send,
    F: Send,
    T: Send

impl<D, F, T, E> Sync for TryMap<D, F, T, E> where
    D: Sync,
    E: Sync,
    F: Sync,
    T: Sync