ArrayManufacture

Trait ArrayManufacture 

Source
pub trait ArrayManufacture {
    type Array: FromBytes + IntoBytes + Immutable;
}
Expand description

Trait that associates an ArrayFactory with its corresponding aligned array type.

This trait is implemented for ArrayFactory<A, N> where A is 1, 2, 4, or 8, mapping to U8Array, U16Array, U32Array, and U64Array respectively.

Required Associated Types§

Source

type Array: FromBytes + IntoBytes + Immutable

The aligned array type produced by this factory.

Implementors§

Source§

impl<const N: usize> ArrayManufacture for ArrayFactory<1, N>

Source§

impl<const N: usize> ArrayManufacture for ArrayFactory<2, N>

Source§

impl<const N: usize> ArrayManufacture for ArrayFactory<4, N>

Source§

impl<const N: usize> ArrayManufacture for ArrayFactory<8, N>