pub trait Engine {
// Required methods
fn get_name(&self) -> String;
fn encode(&self, string: &str) -> Option<Vec<u8>>;
fn decode(&self, bytes: &[u8]) -> String;
}Expand description
A deencoding engine.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".