Trait Id128DynamicArrayConv

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

Source

fn try_from_array_dynamic(array: &[u8; 17]) -> Option<Self>

Convert a byte array into this type.

Source

fn to_array_dynamic(&self) -> [u8; 17]

Convert this type into a byte array.

Provided Methods§

Source

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.

Implementors§