Trait hybrid_array::ArraySize
source · pub unsafe trait ArraySize: Unsigned {
type ArrayType<T>: AsRef<[T]> + AsMut<[T]> + IntoArray<T> + ArrayExt<T>;
}
Expand description
Trait which associates a usize
size and ArrayType
with a
typenum
-provided Unsigned
integer.
Safety
ArrayType
MUST be an array with a number of elements exactly equal to
Unsigned::USIZE
.
Failure to so will cause undefined behavior.
NOTE: do not implement this trait yourself. It is implemented for types in
typenum::consts
.