Trait reth_ethereum_forks::Hardfork

source ·
pub trait Hardfork:
    Any
    + DynClone
    + Send
    + Sync
    + 'static {
    // Required method
    fn name(&self) -> &'static str;
}
Expand description

Generic hardfork trait.

Required Methods§

source

fn name(&self) -> &'static str

Fork name.

Trait Implementations§

source§

impl Debug for dyn Hardfork + 'static

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for dyn Hardfork + 'static

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
source§

impl PartialEq for dyn Hardfork + 'static

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for dyn Hardfork + 'static

Implementations on Foreign Types§

source§

impl<'a, T: 'a + Hardfork + ?Sized> Hardfork for &'a T
where &'a T: Any + DynClone + Send + Sync + 'static,

source§

fn name(&self) -> &'static str

source§

impl<T: Hardfork + ?Sized> Hardfork for Box<T>
where Box<T>: Any + DynClone + Send + Sync + 'static,

source§

fn name(&self) -> &'static str

Implementors§