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