pub trait TokenKindExt {
// Required methods
fn is_keyword(&self) -> bool;
fn is_literal(&self) -> bool;
fn is_operator(&self) -> bool;
fn is_delimiter(&self) -> bool;
fn is_identifier(&self) -> bool;
}Required Methods§
fn is_keyword(&self) -> bool
fn is_literal(&self) -> bool
fn is_operator(&self) -> bool
fn is_delimiter(&self) -> bool
fn is_identifier(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".