pub trait Decode: Sized {
// Required method
fn decode(buf: &mut impl Buf) -> Result<Self>;
}Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
pub trait Decode: Sized {
// Required method
fn decode(buf: &mut impl Buf) -> Result<Self>;
}This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".