Struct bytecodec::combinator::MapFrom [−][src]
pub struct MapFrom<E, T, F> { /* fields omitted */ }
Expand description
Combinator for converting items into ones that suited to the inner encoder by calling the given function.
This is created by calling EncodeExt::map_from
method.
Implementations
Trait Implementations
Returns the exact number of bytes required to encode all the items remaining in the encoder.
Auto Trait Implementations
impl<E, T, F> RefUnwindSafe for MapFrom<E, T, F> where
E: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<E, T, F> UnwindSafe for MapFrom<E, T, F> where
E: UnwindSafe,
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Encodes the items remaining in the encoder and writes the encoded bytes to the given write buffer. Read more
Encodes the items remaining in the encoder and
writes the encoded bytes to the given write buffer.
If the write buffer is full and the writing cannot be performed,
the given WriteBuf will memorize cx’s Waker
.
This Waker
’s wake
will later be called when the WriteBuf
regains its free space. Read more