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

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

Combinator for converting decoded items to other values.

This is created by calling DecodeExt::map method.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

impl<D, T, F> Decode for Map<D, T, F> where
    D: Decode,
    F: Fn(D::Item) -> T, 
[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, 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