reth_revm::interpreter::primitives::specification

Trait Spec

pub trait Spec: Sized + 'static {
    const SPEC_ID: SpecId;

    // Provided method
    fn enabled(spec_id: SpecId) -> bool { ... }
}

Required Associated Constants§

const SPEC_ID: SpecId

The specification ID.

Provided Methods§

fn enabled(spec_id: SpecId) -> bool

Returns true if the given specification ID is enabled in this spec.

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.

Implementors§

§

impl Spec for BedrockSpec

§

const SPEC_ID: SpecId = BEDROCK

§

impl Spec for BerlinSpec

§

const SPEC_ID: SpecId = BERLIN

§

impl Spec for ByzantiumSpec

§

const SPEC_ID: SpecId = BYZANTIUM

§

impl Spec for CancunSpec

§

const SPEC_ID: SpecId = CANCUN

§

impl Spec for CanyonSpec

§

const SPEC_ID: SpecId = CANYON

§

impl Spec for EcotoneSpec

§

const SPEC_ID: SpecId = ECOTONE

§

impl Spec for FjordSpec

§

const SPEC_ID: SpecId = FJORD

§

impl Spec for FrontierSpec

§

const SPEC_ID: SpecId = FRONTIER

§

impl Spec for GraniteSpec

§

const SPEC_ID: SpecId = GRANITE

§

impl Spec for HoloceneSpec

§

const SPEC_ID: SpecId = HOLOCENE

§

impl Spec for HomesteadSpec

§

const SPEC_ID: SpecId = HOMESTEAD

§

impl Spec for IstanbulSpec

§

const SPEC_ID: SpecId = ISTANBUL

§

impl Spec for LatestSpec

§

const SPEC_ID: SpecId = LATEST

§

impl Spec for LondonSpec

§

const SPEC_ID: SpecId = LONDON

§

impl Spec for MergeSpec

§

const SPEC_ID: SpecId = MERGE

§

impl Spec for OsakaSpec

§

const SPEC_ID: SpecId = OSAKA

§

impl Spec for PetersburgSpec

§

const SPEC_ID: SpecId = PETERSBURG

§

impl Spec for PragueSpec

§

const SPEC_ID: SpecId = PRAGUE

§

impl Spec for RegolithSpec

§

const SPEC_ID: SpecId = REGOLITH

§

impl Spec for ShanghaiSpec

§

const SPEC_ID: SpecId = SHANGHAI

§

impl Spec for SpuriousDragonSpec

§

const SPEC_ID: SpecId = SPURIOUS_DRAGON

§

impl Spec for TangerineSpec

§

const SPEC_ID: SpecId = TANGERINE