Trait dryoc::types::ByteArray[][src]

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