pub trait Decode<C: Codec>: Sized {
// Required method
fn decode(c: C, r: &mut ByteCursor) -> Result<Self, String>;
}Expand description
A trait representing the ability to decode with
the codec C for the type.
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.