pub trait SupportedFixedBytes: Sealed {
    const NAME: &'static str;
}
Expand description

Statically guarantees that a FixedBytes byte count is marked as supported.

This trait is sealed: the list of implementors below is total.

Users do not have the ability to mark additional ByteCount<N> values as supported. Only FixedBytes with supported byte counts are constructable.

Required Associated Constants§

source

const NAME: &'static str

The name of the FixedBytes type: bytes<N>

Implementors§

source§

impl SupportedFixedBytes for ByteCount<1>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<2>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<3>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<4>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<5>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<6>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<7>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<8>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<9>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<10>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<11>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<12>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<13>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<14>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<15>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<16>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<17>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<18>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<19>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<20>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<21>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<22>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<23>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<24>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<25>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<26>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<27>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<28>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<29>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<30>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<31>

source§

const NAME: &'static str = _

source§

impl SupportedFixedBytes for ByteCount<32>

source§

const NAME: &'static str = _