pub trait Encoding {
// Required methods
fn encode(bytes: &[u8]) -> String;
fn decode<E: Error>(string: &str) -> Result<Vec<u8>, E>;
}
Expand description
A trait for encoding bytes into strings.
Required Methods§
Object Safety§
This trait is not object safe.