pub trait Decoder {
type Error;
// Required method
fn decode<R>(&self, target: &mut R) -> Result<Value, Self::Error>
where R: Read + ReadBytesExt;
}
Expand description
A schema to de-serialize a value from bytes.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.