alloy_sol_types::sol_data

Struct ByteCount

Source
pub struct ByteCount<const N: usize>;
Expand description

Specifies the number of bytes in a FixedBytes array as a type.

Trait Implementations§

Source§

impl SupportedFixedBytes for ByteCount<1>

Source§

const NAME: &'static str = "bytes1"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<10>

Source§

const NAME: &'static str = "bytes10"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<11>

Source§

const NAME: &'static str = "bytes11"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<12>

Source§

const NAME: &'static str = "bytes12"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<13>

Source§

const NAME: &'static str = "bytes13"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<14>

Source§

const NAME: &'static str = "bytes14"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<15>

Source§

const NAME: &'static str = "bytes15"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<16>

Source§

const NAME: &'static str = "bytes16"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<17>

Source§

const NAME: &'static str = "bytes17"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<18>

Source§

const NAME: &'static str = "bytes18"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<19>

Source§

const NAME: &'static str = "bytes19"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<2>

Source§

const NAME: &'static str = "bytes2"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<20>

Source§

const NAME: &'static str = "bytes20"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<21>

Source§

const NAME: &'static str = "bytes21"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<22>

Source§

const NAME: &'static str = "bytes22"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<23>

Source§

const NAME: &'static str = "bytes23"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<24>

Source§

const NAME: &'static str = "bytes24"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<25>

Source§

const NAME: &'static str = "bytes25"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<26>

Source§

const NAME: &'static str = "bytes26"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<27>

Source§

const NAME: &'static str = "bytes27"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<28>

Source§

const NAME: &'static str = "bytes28"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<29>

Source§

const NAME: &'static str = "bytes29"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<3>

Source§

const NAME: &'static str = "bytes3"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<30>

Source§

const NAME: &'static str = "bytes30"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<31>

Source§

const NAME: &'static str = "bytes31"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<32>

Source§

const NAME: &'static str = "bytes32"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<4>

Source§

const NAME: &'static str = "bytes4"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<5>

Source§

const NAME: &'static str = "bytes5"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<6>

Source§

const NAME: &'static str = "bytes6"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<7>

Source§

const NAME: &'static str = "bytes7"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<8>

Source§

const NAME: &'static str = "bytes8"

The name of the FixedBytes type: bytes<N>
Source§

impl SupportedFixedBytes for ByteCount<9>

Source§

const NAME: &'static str = "bytes9"

The name of the FixedBytes type: bytes<N>

Auto Trait Implementations§

§

impl<const N: usize> Freeze for ByteCount<N>

§

impl<const N: usize> RefUnwindSafe for ByteCount<N>

§

impl<const N: usize> Send for ByteCount<N>

§

impl<const N: usize> Sync for ByteCount<N>

§

impl<const N: usize> Unpin for ByteCount<N>

§

impl<const N: usize> UnwindSafe for ByteCount<N>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V