pub trait TokenKind: Copy {
Show 35 methods
// Required methods
fn is_dot(self) -> bool;
fn is_bin_op(self) -> bool;
fn is_semi(self) -> bool;
fn is_template(self) -> bool;
fn is_keyword(self) -> bool;
fn is_colon(self) -> bool;
fn is_lbrace(self) -> bool;
fn is_rbrace(self) -> bool;
fn is_lparen(self) -> bool;
fn is_rparen(self) -> bool;
fn is_keyword_fn(self) -> bool;
fn is_keyword_return(self) -> bool;
fn is_keyword_yield(self) -> bool;
fn is_keyword_else(self) -> bool;
fn is_keyword_class(self) -> bool;
fn is_keyword_let(self) -> bool;
fn is_keyword_var(self) -> bool;
fn is_keyword_const(self) -> bool;
fn is_keyword_if(self) -> bool;
fn is_keyword_while(self) -> bool;
fn is_keyword_for(self) -> bool;
fn is_keyword_with(self) -> bool;
fn is_lt(self) -> bool;
fn is_gt(self) -> bool;
fn is_arrow(self) -> bool;
fn is_ident(self) -> bool;
fn is_known_ident_of(self) -> bool;
fn is_slash(self) -> bool;
fn is_dollar_lbrace(self) -> bool;
fn is_plus_plus(self) -> bool;
fn is_minus_minus(self) -> bool;
fn is_back_quote(self) -> bool;
fn is_jsx_tag_start(self) -> bool;
fn is_jsx_tag_end(self) -> bool;
fn before_expr(self) -> bool;
}
Required Methods§
fn is_dot(self) -> bool
fn is_bin_op(self) -> bool
fn is_semi(self) -> bool
fn is_template(self) -> bool
fn is_keyword(self) -> bool
fn is_colon(self) -> bool
fn is_lbrace(self) -> bool
fn is_rbrace(self) -> bool
fn is_lparen(self) -> bool
fn is_rparen(self) -> bool
fn is_keyword_fn(self) -> bool
fn is_keyword_return(self) -> bool
fn is_keyword_yield(self) -> bool
fn is_keyword_else(self) -> bool
fn is_keyword_class(self) -> bool
fn is_keyword_let(self) -> bool
fn is_keyword_var(self) -> bool
fn is_keyword_const(self) -> bool
fn is_keyword_if(self) -> bool
fn is_keyword_while(self) -> bool
fn is_keyword_for(self) -> bool
fn is_keyword_with(self) -> bool
fn is_lt(self) -> bool
fn is_gt(self) -> bool
fn is_arrow(self) -> bool
fn is_ident(self) -> bool
fn is_known_ident_of(self) -> bool
fn is_slash(self) -> bool
fn is_dollar_lbrace(self) -> bool
fn is_plus_plus(self) -> bool
fn is_minus_minus(self) -> bool
fn is_back_quote(self) -> bool
fn is_jsx_tag_start(self) -> bool
fn is_jsx_tag_end(self) -> bool
fn before_expr(self) -> bool
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.