generic_array

Trait ArrayLength

Source
pub unsafe trait ArrayLength<T>: Unsigned {
    type ArrayType;
}
Expand description

Trait making GenericArray work, marking types to be used as length of an array

Required Associated Types§

Source

type ArrayType

Associated type representing the array type for the number

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.

Implementations on Foreign Types§

Source§

impl<T> ArrayLength<T> for UTerm

Source§

impl<T, N: ArrayLength<T>> ArrayLength<T> for UInt<N, B0>

Source§

impl<T, N: ArrayLength<T>> ArrayLength<T> for UInt<N, B1>

Implementors§