pub trait EncoderValue {
    fn encode<E>(&self, encoder: &mut E)
    where
        E: Encoder
; fn encode_mut<E>(&mut self, encoder: &mut E)
    where
        E: Encoder
, { ... } fn encoding_size(&self) -> usize { ... } fn encoding_size_for_encoder<E>(&self, encoder: &E) -> usize
    where
        E: Encoder
, { ... } fn encode_with_len_prefix<Len, E>(&self, encoder: &mut E)
    where
        Len: TryFrom<usize> + EncoderValue,
        E: Encoder,
        <Len as TryFrom<usize>>::Error: Debug
, { ... } }

Required Methods

Encodes the value into the encoder

Provided Methods

Encodes the value into the encoder, while potentially mutating the value itself

Returns the encoding size with no buffer constrains

Returns the encoding size for the given encoder’s capacity

Encodes the value into the encoder with a prefix of Len

Implementations on Foreign Types

Implementors