pub trait Decode: Sized {
type Error: Error;
// Required method
fn decode<R: Read>(r: &mut R) -> Result<Self, Self::Error>;
}Expand description
A trait for decoding types from Essential Words in a manner compatible with Pint’s ABI.
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.