Struct bytecodec::combinator::WithPrefix [] [src]

pub struct WithPrefix<E0, E1, F> { /* fields omitted */ }

Combinator for adding prefix items.

This is created by calling EncodeExt::with_prefix method.

Trait Implementations

impl<E0: Debug, E1: Debug, F: Debug> Debug for WithPrefix<E0, E1, F>
[src]

[src]

Formats the value using the given formatter. Read more

impl<E0, E1, F> Encode for WithPrefix<E0, E1, F> where
    E0: Encode,
    E1: Encode,
    F: Fn(&E0) -> E1::Item
[src]

The type of items to be encoded.

[src]

Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more

[src]

Tries to start encoding the given item. Read more

[src]

Returns the number of bytes required to encode all the items in the encoder. Read more

[src]

Returns true if there are no items to be encoded in the encoder, otherwise false.

impl<E0, E1, F> ExactBytesEncode for WithPrefix<E0, E1, F> where
    E0: ExactBytesEncode,
    E1: ExactBytesEncode,
    F: Fn(&E0) -> E1::Item
[src]

[src]

Returns the exact number of bytes required to encode all the items remaining in the encoder.

Auto Trait Implementations

impl<E0, E1, F> Send for WithPrefix<E0, E1, F> where
    E0: Send,
    E1: Send,
    F: Send

impl<E0, E1, F> Sync for WithPrefix<E0, E1, F> where
    E0: Sync,
    E1: Sync,
    F: Sync