Trait alloy_sol_types::sol_data::SupportedFixedBytes

source ·
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>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl SupportedFixedBytes for ByteCount<1>

source§

const NAME: &'static str = "bytes1"

source§

impl SupportedFixedBytes for ByteCount<2>

source§

const NAME: &'static str = "bytes2"

source§

impl SupportedFixedBytes for ByteCount<3>

source§

const NAME: &'static str = "bytes3"

source§

impl SupportedFixedBytes for ByteCount<4>

source§

const NAME: &'static str = "bytes4"

source§

impl SupportedFixedBytes for ByteCount<5>

source§

const NAME: &'static str = "bytes5"

source§

impl SupportedFixedBytes for ByteCount<6>

source§

const NAME: &'static str = "bytes6"

source§

impl SupportedFixedBytes for ByteCount<7>

source§

const NAME: &'static str = "bytes7"

source§

impl SupportedFixedBytes for ByteCount<8>

source§

const NAME: &'static str = "bytes8"

source§

impl SupportedFixedBytes for ByteCount<9>

source§

const NAME: &'static str = "bytes9"

source§

impl SupportedFixedBytes for ByteCount<10>

source§

const NAME: &'static str = "bytes10"

source§

impl SupportedFixedBytes for ByteCount<11>

source§

const NAME: &'static str = "bytes11"

source§

impl SupportedFixedBytes for ByteCount<12>

source§

const NAME: &'static str = "bytes12"

source§

impl SupportedFixedBytes for ByteCount<13>

source§

const NAME: &'static str = "bytes13"

source§

impl SupportedFixedBytes for ByteCount<14>

source§

const NAME: &'static str = "bytes14"

source§

impl SupportedFixedBytes for ByteCount<15>

source§

const NAME: &'static str = "bytes15"

source§

impl SupportedFixedBytes for ByteCount<16>

source§

const NAME: &'static str = "bytes16"

source§

impl SupportedFixedBytes for ByteCount<17>

source§

const NAME: &'static str = "bytes17"

source§

impl SupportedFixedBytes for ByteCount<18>

source§

const NAME: &'static str = "bytes18"

source§

impl SupportedFixedBytes for ByteCount<19>

source§

const NAME: &'static str = "bytes19"

source§

impl SupportedFixedBytes for ByteCount<20>

source§

const NAME: &'static str = "bytes20"

source§

impl SupportedFixedBytes for ByteCount<21>

source§

const NAME: &'static str = "bytes21"

source§

impl SupportedFixedBytes for ByteCount<22>

source§

const NAME: &'static str = "bytes22"

source§

impl SupportedFixedBytes for ByteCount<23>

source§

const NAME: &'static str = "bytes23"

source§

impl SupportedFixedBytes for ByteCount<24>

source§

const NAME: &'static str = "bytes24"

source§

impl SupportedFixedBytes for ByteCount<25>

source§

const NAME: &'static str = "bytes25"

source§

impl SupportedFixedBytes for ByteCount<26>

source§

const NAME: &'static str = "bytes26"

source§

impl SupportedFixedBytes for ByteCount<27>

source§

const NAME: &'static str = "bytes27"

source§

impl SupportedFixedBytes for ByteCount<28>

source§

const NAME: &'static str = "bytes28"

source§

impl SupportedFixedBytes for ByteCount<29>

source§

const NAME: &'static str = "bytes29"

source§

impl SupportedFixedBytes for ByteCount<30>

source§

const NAME: &'static str = "bytes30"

source§

impl SupportedFixedBytes for ByteCount<31>

source§

const NAME: &'static str = "bytes31"

source§

impl SupportedFixedBytes for ByteCount<32>

source§

const NAME: &'static str = "bytes32"