pub trait ArrayConversions<const N: usize>where
Self: Sealed,{
// Required methods
fn into_le_bytes(self) -> [u8; N];
fn into_be_bytes(self) -> [u8; N];
fn into_ne_bytes(self) -> [u8; N];
fn from_le_bytes(bytes: [u8; N]) -> Self;
fn from_be_bytes(bytes: [u8; N]) -> Self;
fn from_ne_bytes(bytes: [u8; N]) -> Self;
}
Required Methods§
fn into_le_bytes(self) -> [u8; N]
fn into_be_bytes(self) -> [u8; N]
fn into_ne_bytes(self) -> [u8; N]
fn from_le_bytes(bytes: [u8; N]) -> Self
fn from_be_bytes(bytes: [u8; N]) -> Self
fn from_ne_bytes(bytes: [u8; N]) -> Self
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.