KeywordArgId

Trait KeywordArgId 

Source
pub trait KeywordArgId:
    Copy
    + Eq
    + Hash
    + Debug {
    // Required methods
    fn as_str(&self) -> &str;
    fn from_name(name: &str) -> Option<Self>;
}
Expand description

The unique id for a single keyword argument

Required Methods§

Source

fn as_str(&self) -> &str

The name of this argument, as a string

Source

fn from_name(name: &str) -> Option<Self>

Get the argument with the specified name, returning None if it’s unknown

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§