pub trait ByteArrayNativeType:
Debug
+ Send
+ Sync {
// Required methods
fn from_bytes_checked(b: &[u8]) -> Option<&Self>;
unsafe fn from_bytes_unchecked(b: &[u8]) -> &Self;
}Required Methods§
fn from_bytes_checked(b: &[u8]) -> Option<&Self>
Sourceunsafe fn from_bytes_unchecked(b: &[u8]) -> &Self
unsafe fn from_bytes_unchecked(b: &[u8]) -> &Self
§Safety
b must be a valid byte sequence for Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".