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§