Trait ByteEncoder

Source
pub trait ByteEncoder: Default {
    type Encoder: EncodeBytes + From<Self>;
}
Expand description

Provides an instance of byte-to-string encoder.

This is basically a type constructor used in places where value arguments are not accepted. Such as the generic serialize.

Required Associated Types§

Source

type Encoder: EncodeBytes + From<Self>

The encoder state.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§