Trait IsTyped2718

Source
pub trait IsTyped2718 {
    // Required method
    fn is_type(type_id: u8) -> bool;
}
Expand description

Trait for checking if a transaction envelope supports a given EIP-2718 type ID.

Required Methods§

Source

fn is_type(type_id: u8) -> bool

Returns true if the given type ID corresponds to a supported typed transaction.

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.

Implementations on Foreign Types§

Source§

impl<L, R> IsTyped2718 for Either<L, R>
where L: IsTyped2718, R: IsTyped2718,

Source§

fn is_type(type_id: u8) -> bool

Implementors§