reth_ethereum_forks

Trait 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§