pub trait Keyword: Spanned + Sized {
const AS_STR: &'static str;
// Required methods
fn new(span: Span) -> Self;
fn ident(&self) -> Ident;
}
Expand description
The type is a keyword.
Required Associated Constants§
Required Methods§
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.