pub trait FromSlice<'a>: Sized {
// Required method
fn parse(data: &'a [u8]) -> Option<Self>;
}Expand description
A trait for parsing raw binary data of variable size.
This is a low-level, internal trait that should not be used directly.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".