Trait Id128StaticArrayConv

Source
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§

Source

fn from_array_static(array: &[u8; 16]) -> Self

Convert a byte array into this type.

Source

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.

Implementors§