Skip to main content

Encoder

Trait Encoder 

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

Required Methods§

Source

fn encode(&self, data: &[u8]) -> String

Encode binary data to string

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§