[][src]Trait ress::tokens::Token

pub trait Token {
    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: BooleanLiteral) -> 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; }

Required methods

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: BooleanLiteral) -> 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

Loading content...

Implementors

impl Token for ress::tokens::owned::Token[src]

impl<'a> Token for ress::tokens::refs::Token<'a>[src]

Loading content...