Trait zorder::Deinterleave

source ·
pub trait Deinterleave<const N: usize>: Sealed {
    type Output;

    // Required method
    fn deinterleave(self, lsb: usize) -> Self::Output;
}
Expand description

Deinterleave a single number from a set of interleaved numbers. Inverse of Interleave.

Required Associated Types§

source

type Output

Smallest unsigned integer type that can hold the deinterleaved bits.

Required Methods§

source

fn deinterleave(self, lsb: usize) -> Self::Output

Deinterleaves a number from a set of interleaved numbers starting from the given least significant bit (lsb) index.

Dimension N determines which bits are extracted to form the output number.

Implementors§

source§

impl<T, const N: usize> Deinterleave<N> for T
where T: DeinterleaveOutput<N> + AsPrimitive<<Self as DeinterleaveOutput<N>>::Output> + BitCount + PrimInt,

§

type Output = <T as DeinterleaveOutput<N>>::Output