pub trait Encoder<Input: ?Sized> {
type Output;
type Error;
// Required method
fn encode(&self, input: &Input) -> Result<Self::Output, Self::Error>;
}Expand description
Encodes a borrowed input value into another representation.
pub trait Encoder<Input: ?Sized> {
type Output;
type Error;
// Required method
fn encode(&self, input: &Input) -> Result<Self::Output, Self::Error>;
}Encodes a borrowed input value into another representation.