pub trait FromBytes<T: Sized> {
// Required method
fn from_bytes(bytes: T) -> Self;
}Expand description
Trait to do the conversion of raw bytes to the given type
Required Methods§
Sourcefn from_bytes(bytes: T) -> Self
fn from_bytes(bytes: T) -> Self
get a type from the sized byte array
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.