Trait proc_macro_kwargs::args::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

Object Safety§

This trait is not object safe.

Implementors§