pub trait Id128DynamicArrayConv: Sized {
// Required methods
fn try_from_array_dynamic(array: &[u8; 17]) -> Option<Self>;
fn to_array_dynamic(&self) -> [u8; 17];
// Provided method
fn try_from_bytes_dynamic(bytes: &[u8]) -> Option<Self> { ... }
}Expand description
Conversion to and from byte arrays with Kind information.
Required Methods§
Sourcefn try_from_array_dynamic(array: &[u8; 17]) -> Option<Self>
fn try_from_array_dynamic(array: &[u8; 17]) -> Option<Self>
Convert a byte array into this type.
Sourcefn to_array_dynamic(&self) -> [u8; 17]
fn to_array_dynamic(&self) -> [u8; 17]
Convert this type into a byte array.
Provided Methods§
Sourcefn try_from_bytes_dynamic(bytes: &[u8]) -> Option<Self>
fn try_from_bytes_dynamic(bytes: &[u8]) -> Option<Self>
Convert a byte slice into this type.
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.