Skip to main content

MetaValue

Trait MetaValue 

Source
pub trait MetaValue: Copy + Sized {
    const KEY: &'static str;

    // Required methods
    fn as_str(self) -> &'static str;
    fn parse(raw: &str) -> Option<Self>;
}

Required Associated Constants§

Source

const KEY: &'static str

Required Methods§

Source

fn as_str(self) -> &'static str

Source

fn parse(raw: &str) -> Option<Self>

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 MetaValue for ComponentKind

Source§

const KEY: &'static str = key::COMPONENT_KIND

Source§

impl MetaValue for ConfigGroup

Source§

const KEY: &'static str = key::CONFIG_GROUP

Source§

impl MetaValue for ConfigKind

Source§

const KEY: &'static str = key::CONFIG_KIND

Source§

impl MetaValue for HintCode

Source§

const KEY: &'static str = key::HINT_CODE

Source§

impl MetaValue for OperationKind

Source§

const KEY: &'static str = key::OPERATION_KIND

Source§

impl MetaValue for RuntimeStage

Source§

const KEY: &'static str = key::RUNTIME_STAGE