Trait Niche

Source
pub trait Niche {
    type NeedsTag: Bit;
    type N: ArrayLength;

    // Required method
    fn niche() -> GenericArray<u8, Self::N>;
}

Required Associated Types§

Required Methods§

Source

fn niche() -> GenericArray<u8, Self::N>

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.

Implementors§

Source§

impl<N: ArrayLength> Niche for ZeroNiche<N>

Source§

impl<N: ArrayLength> Niche for ZeroNoNiche<N>

Source§

impl<T: Niche<NeedsTag = B0>> Niche for SomeNiche<T>

Source§

type NeedsTag = <T as Niche>::NeedsTag

Source§

type N = <T as Niche>::N

Source§

impl<V: Niche<NeedsTag = B1>> Niche for NoNiche<V>

Source§

type NeedsTag = B1

Source§

type N = <V as Niche>::N

Source§

impl<const X: usize> Niche for HackNiche<X>