pub trait Decoder { // Required method fn decode(&self, data: &str) -> Option<Vec<u8>>; }
Decode string to binary data
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".