pub trait ParserDialect {
Show 17 methods
// Provided methods
fn is_import_keyword(&self, _ident: &str) -> bool { ... }
fn is_from_keyword(&self, _ident: &str) -> bool { ... }
fn is_fn_alias_keyword(&self, _ident: &str) -> bool { ... }
fn is_let_alias_keyword(&self, _ident: &str) -> bool { ... }
fn allow_import_stmt(&self) -> bool { ... }
fn allow_return_stmt(&self) -> bool { ... }
fn allow_require_declaration(&self) -> bool { ... }
fn allow_typeof_operator(&self) -> bool { ... }
fn allow_arrow_closure(&self) -> bool { ... }
fn allow_dotted_call(&self) -> bool { ... }
fn allow_namespace_path_separator(&self) -> bool { ... }
fn allow_let_mut_binding(&self) -> bool { ... }
fn allow_macro_calls(&self) -> bool { ... }
fn allow_plus_equal_operator(&self) -> bool { ... }
fn allow_increment_operator(&self) -> bool { ... }
fn allow_parenthesized_for_loop(&self) -> bool { ... }
fn allow_for_in_loop(&self) -> bool { ... }
}Provided Methods§
fn is_import_keyword(&self, _ident: &str) -> bool
fn is_from_keyword(&self, _ident: &str) -> bool
fn is_fn_alias_keyword(&self, _ident: &str) -> bool
fn is_let_alias_keyword(&self, _ident: &str) -> bool
fn allow_import_stmt(&self) -> bool
fn allow_return_stmt(&self) -> bool
fn allow_require_declaration(&self) -> bool
fn allow_typeof_operator(&self) -> bool
fn allow_arrow_closure(&self) -> bool
fn allow_dotted_call(&self) -> bool
fn allow_namespace_path_separator(&self) -> bool
fn allow_let_mut_binding(&self) -> bool
fn allow_macro_calls(&self) -> bool
fn allow_plus_equal_operator(&self) -> bool
fn allow_increment_operator(&self) -> bool
fn allow_parenthesized_for_loop(&self) -> bool
fn allow_for_in_loop(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".