alloy_rlp

Trait MaxEncodedLen

Source
pub unsafe trait MaxEncodedLen<const LEN: usize>: Encodable { }
Expand description

Defines the max length of an Encodable type as a const generic.

§Safety

An invalid value can cause the encoder to panic.

Implementations on Foreign Types§

Source§

impl MaxEncodedLen<{ $len }> for bool

Source§

impl MaxEncodedLen<{ $len }> for u8

Source§

impl MaxEncodedLen<{ $len }> for u16

Source§

impl MaxEncodedLen<{ $len }> for u32

Source§

impl MaxEncodedLen<{ $len }> for u64

Source§

impl MaxEncodedLen<{ $len }> for u128

Source§

impl MaxEncodedLen<{ $len }> for usize

Implementors§