pub trait Id128StaticArrayConv {
// Required methods
fn from_array_static(array: &[u8; 16]) -> Self;
fn to_array_static(&self) -> [u8; 16];
}
Expand description
Conversion to and from byte arrays without Kind information.
Required Methods§
Sourcefn from_array_static(array: &[u8; 16]) -> Self
fn from_array_static(array: &[u8; 16]) -> Self
Convert a byte array into this type.
Sourcefn to_array_static(&self) -> [u8; 16]
fn to_array_static(&self) -> [u8; 16]
Convert this type into a 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.