pub trait Keyword: Spanned + Sized {
    const AS_STR: &'static str;

    fn new(span: Span) -> Self;
    fn ident(&self) -> Ident;
}
Expand description

The type is a keyword.

Required Associated Constants

What the string representation of the keyword is when lexing.

Required Methods

Creates the keyword from the given span.

Returns an identifier for this keyword.

Implementors