Trait ergo_lib::ArrLength

source ·
pub trait ArrLength {
    const LEN: usize;
}
Expand description

Selectively exposed types Get the length of constant sized arrays.

use ergo_lib::ArrLength;

type SecretKeyBytes = [u8; 32];

assert_eq!(32, SecretKeyBytes::LEN)

Required Associated Constants§

source

const LEN: usize

Length of the array

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T, const LENGTH: usize> ArrLength for [T; LENGTH]

source§

const LEN: usize = LENGTH

Implementors§