revm_primitives::specification

Trait Spec

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

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

Required Associated Constants§

source

const SPEC_ID: SpecId

The specification ID.

Provided Methods§

source

fn enabled(spec_id: SpecId) -> bool

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Spec for BedrockSpec

source§

const SPEC_ID: SpecId = BEDROCK

source§

impl Spec for BerlinSpec

source§

const SPEC_ID: SpecId = BERLIN

source§

impl Spec for ByzantiumSpec

source§

const SPEC_ID: SpecId = BYZANTIUM

source§

impl Spec for CancunSpec

source§

const SPEC_ID: SpecId = CANCUN

source§

impl Spec for CanyonSpec

source§

const SPEC_ID: SpecId = CANYON

source§

impl Spec for EcotoneSpec

source§

const SPEC_ID: SpecId = ECOTONE

source§

impl Spec for FjordSpec

source§

const SPEC_ID: SpecId = FJORD

source§

impl Spec for FrontierSpec

source§

const SPEC_ID: SpecId = FRONTIER

source§

impl Spec for GraniteSpec

source§

const SPEC_ID: SpecId = GRANITE

source§

impl Spec for HoloceneSpec

source§

const SPEC_ID: SpecId = HOLOCENE

source§

impl Spec for HomesteadSpec

source§

const SPEC_ID: SpecId = HOMESTEAD

source§

impl Spec for IstanbulSpec

source§

const SPEC_ID: SpecId = ISTANBUL

source§

impl Spec for LatestSpec

source§

const SPEC_ID: SpecId = LATEST

source§

impl Spec for LondonSpec

source§

const SPEC_ID: SpecId = LONDON

source§

impl Spec for MergeSpec

source§

const SPEC_ID: SpecId = MERGE

source§

impl Spec for PetersburgSpec

source§

const SPEC_ID: SpecId = PETERSBURG

source§

impl Spec for PragueEofSpec

source§

const SPEC_ID: SpecId = PRAGUE_EOF

source§

impl Spec for PragueSpec

source§

const SPEC_ID: SpecId = PRAGUE

source§

impl Spec for RegolithSpec

source§

const SPEC_ID: SpecId = REGOLITH

source§

impl Spec for ShanghaiSpec

source§

const SPEC_ID: SpecId = SHANGHAI

source§

impl Spec for SpuriousDragonSpec

source§

const SPEC_ID: SpecId = SPURIOUS_DRAGON

source§

impl Spec for TangerineSpec

source§

const SPEC_ID: SpecId = TANGERINE