pub trait EasyArgument: EasyPeek {
    // Required methods
    fn name_display() -> &'static str;
    fn name_span(&self) -> Span;
}
Expand description

Trait for parsable arguments. Arguments have a token as a name that is used for peeking. Name of the argument can be displayed for user in some error cases.

Required Methods§

source

fn name_display() -> &'static str

Returns attribute name for display purposes.

source

fn name_span(&self) -> Span

Returns attribute name for display purposes.

Implementors§