pub trait Keyword: Spanned + Sized { const AS_STR: &'static str; fn new(span: Span) -> Self; fn ident(&self) -> Ident; }
The type is a keyword.
What the string representation of the keyword is when lexing.
Creates the keyword from the given span.
span
Returns an identifier for this keyword.