pub trait Encode {
// Required method
fn encode(b: &[u8]) -> String;
}Expand description
A trait that represents how data can be converted from bytes to a string.
Generally structs that implement Decode will be unit-like structs that just implement the one
required method.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".