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.

Methods

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

Important traits for &'a mut W
[src]

Returns a reference to the inner decoder.

Important traits for &'a mut W
[src]

Returns a mutable reference to the inner decoder.

[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]

[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 proceeds the decoding process. Read more

[src]

Finishes the current decoding process and returns the decoded item. Read more

[src]

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

[src]

Returns true if there are no items to be decoded by the decoder at the next invocation of decode method, otherwise false. 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