pub trait BeByteArray:
Copy
+ AsRef<[u8]>
+ AnyBitPattern
+ Zeroable {
// Required method
fn from_slice(slice: &[u8]) -> Option<Self>;
}
Required Methods§
Sourcefn from_slice(slice: &[u8]) -> Option<Self>
fn from_slice(slice: &[u8]) -> Option<Self>
Must always succeed for [u8; N]
if slice.len() == N
, must fail otherwise
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.