Trait Encoder

Source
pub trait Encoder {
    // Required method
    fn encode<Bytes>(&self, data: Bytes) -> String
       where Bytes: AsRef<[u8]>;
}
Expand description

Encodes bytes data.

Required Methods§

Source

fn encode<Bytes>(&self, data: Bytes) -> String
where Bytes: AsRef<[u8]>,

Encodes the bytes data into some String format.

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§