Trait dryoc::types::ByteArray

source ·
pub trait ByteArray<const LENGTH: usize>: Bytes {
    fn as_array(&self) -> &[u8; LENGTH];
}
Expand description

Fixed-length byte array.

Required Methods§

Returns a reference to the underlying fixed-length byte array.

Implementations on Foreign Types§

Provided for convenience. Panics if the input array size doesn’t match LENGTH.

Implementors§