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 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 FrontierSpec

§

const SPEC_ID: SpecId = FRONTIER

§

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 MercurySpec

§

const SPEC_ID: SpecId = MERCURY

§

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