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.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".