alloy_sol_types::sol_data

Trait 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>

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 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"