[−][src]Trait ress::tokens::TokenExt
Extension methods for implementing allowing Token to work with both &str and String
Extension methods for implementing allowing Token to work with both &str and String
fn is_boolean(&self) -> bool
fn is_boolean_true(&self) -> bool
fn is_boolean_false(&self) -> bool
fn is_eof(&self) -> bool
fn is_ident(&self) -> bool
fn is_keyword(&self) -> bool
fn is_strict_reserved(&self) -> bool
fn is_restricted(&self) -> bool
fn is_null(&self) -> bool
fn is_number(&self) -> bool
fn is_hex_literal(&self) -> bool
fn is_bin_literal(&self) -> bool
fn is_oct_literal(&self) -> bool
fn is_punct(&self) -> bool
fn is_string(&self) -> bool
fn is_double_quoted_string(&self) -> bool
fn is_single_quoted_string(&self) -> bool
fn is_regex(&self) -> bool
fn is_template(&self) -> bool
fn is_template_no_sub(&self) -> bool
fn is_template_head(&self) -> bool
fn is_template_body(&self) -> bool
fn is_template_tail(&self) -> bool
fn is_literal(&self) -> bool
fn is_comment(&self) -> bool
fn is_multi_line_comment(&self) -> bool
fn is_single_line_comment(&self) -> bool
fn matches_boolean(&self, b: Boolean) -> bool
fn matches_boolean_str(&self, b: &str) -> bool
fn matches_ident_str(&self, name: &str) -> bool
fn matches_keyword(&self, keyword: Keyword) -> bool
fn matches_keyword_str(&self, name: &str) -> bool
fn matches_number_str(&self, number: &str) -> bool
fn matches_punct(&self, p: Punct) -> bool
fn matches_punct_str(&self, s: &str) -> bool
fn matches_comment_str(&self, comment: &str) -> bool
fn matches_string_content(&self, content: &str) -> bool
impl<'a> TokenExt for Token<&'a str>
[src]fn is_boolean(&self) -> bool
[src]fn is_boolean_true(&self) -> bool
[src]fn is_boolean_false(&self) -> bool
[src]fn is_eof(&self) -> bool
[src]fn is_ident(&self) -> bool
[src]fn is_keyword(&self) -> bool
[src]fn is_strict_reserved(&self) -> bool
[src]fn is_restricted(&self) -> bool
[src]fn is_null(&self) -> bool
[src]fn is_number(&self) -> bool
[src]fn is_hex_literal(&self) -> bool
[src]fn is_bin_literal(&self) -> bool
[src]fn is_oct_literal(&self) -> bool
[src]fn is_punct(&self) -> bool
[src]fn is_string(&self) -> bool
[src]fn is_double_quoted_string(&self) -> bool
[src]fn is_single_quoted_string(&self) -> bool
[src]fn is_regex(&self) -> bool
[src]fn is_template(&self) -> bool
[src]fn is_template_no_sub(&self) -> bool
[src]fn is_template_head(&self) -> bool
[src]fn is_template_body(&self) -> bool
[src]fn is_template_tail(&self) -> bool
[src]fn is_literal(&self) -> bool
[src]fn is_comment(&self) -> bool
[src]fn is_multi_line_comment(&self) -> bool
[src]fn is_single_line_comment(&self) -> bool
[src]fn matches_boolean(&self, b: Boolean) -> bool
[src]fn matches_boolean_str(&self, b: &str) -> bool
[src]fn matches_ident_str(&self, name: &str) -> bool
[src]fn matches_keyword(&self, keyword: Keyword) -> bool
[src]fn matches_keyword_str(&self, name: &str) -> bool
[src]fn matches_number_str(&self, number: &str) -> bool
[src]fn matches_punct(&self, p: Punct) -> bool
[src]fn matches_punct_str(&self, s: &str) -> bool
[src]fn matches_comment_str(&self, comment: &str) -> bool
[src]fn matches_string_content(&self, content: &str) -> bool
[src]