pub trait DecodableWith<E: Encoding>: Sized + SealedD<E> {
// Required method
fn decode(data: &[u8]) -> Result<Self, E::DecodeError>;
}Required Methods§
fn decode(data: &[u8]) -> Result<Self, E::DecodeError>
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.