pub trait From {
// Required method
unsafe fn from_bytes(bytes: &[u8]) -> Self;
}Expand description
A type which can be constructed from bytes unsafely
Required Methods§
Sourceunsafe fn from_bytes(bytes: &[u8]) -> Self
unsafe fn from_bytes(bytes: &[u8]) -> Self
Construct a type from an array of bytes
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".