pub trait Decoder<T>: 'static {
type Error;
type Encoded: ?Sized;
// Required method
fn decode(val: &Self::Encoded) -> Result<T, Self::Error>;
}Expand description
Trait every decoder must implement.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.