sized_chunks::types

Trait ChunkLength

Source
pub trait ChunkLength<A>: Unsigned {
    type SizedType;
}
Expand description

A trait used to decide the size of an array.

<N as ChunkLength<A>>::SizedType for a type level integer N will have the same size as [A; N].

Required Associated Types§

Source

type SizedType

A Sized type matching the size of an array of Self elements of A.

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<A> ChunkLength<A> for UTerm

Source§

impl<A, N> ChunkLength<A> for UInt<N, B0>
where N: ChunkLength<A>,

Source§

type SizedType = SizeEven<A, <N as ChunkLength<A>>::SizedType>

Source§

impl<A, N> ChunkLength<A> for UInt<N, B1>
where N: ChunkLength<A>,

Source§

type SizedType = SizeOdd<A, <N as ChunkLength<A>>::SizedType>

Implementors§