pub trait Format {
// Required methods
fn encode(&self, bytes: &[u8]) -> String;
fn decode(&self, s: &str) -> Result<Vec<u8>, EvalError>;
}
Expand description
An encoding format.
pub trait Format {
// Required methods
fn encode(&self, bytes: &[u8]) -> String;
fn decode(&self, s: &str) -> Result<Vec<u8>, EvalError>;
}
An encoding format.