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.

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§

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 OsakaSpec

Source§

const SPEC_ID: SpecId = OSAKA

Source§

impl Spec for PetersburgSpec

Source§

const SPEC_ID: SpecId = PETERSBURG

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