pub trait DecodeME: PackedSize {
// Required method
fn decode_from_me_bytes(bytes: &[u8]) -> Self;
}
Expand description
Required Methods§
Sourcefn decode_from_me_bytes(bytes: &[u8]) -> Self
fn decode_from_me_bytes(bytes: &[u8]) -> Self
Read bytes
slice packed as mixed(custom)-endian bytes and create Self
from them
§Panics
Panic if PackedSize represents a different size than bytes
slice.
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.