Struct ress::Item [−][src]
A wrapper around a token that will include the byte span of the text that it was found at
Fields
token: Token
span: Span
Methods
impl Item
[src]
impl Item
Methods from Deref<Target = Token>
pub fn is_boolean(&self) -> bool
[src]
pub fn is_boolean(&self) -> bool
pub fn is_boolean_true(&self) -> bool
[src]
pub fn is_boolean_true(&self) -> bool
pub fn is_boolean_false(&self) -> bool
[src]
pub fn is_boolean_false(&self) -> bool
pub fn is_eof(&self) -> bool
[src]
pub fn is_eof(&self) -> bool
pub fn is_ident(&self) -> bool
[src]
pub fn is_ident(&self) -> bool
pub fn is_keyword(&self) -> bool
[src]
pub fn is_keyword(&self) -> bool
pub fn is_strict_reserved(&self) -> bool
[src]
pub fn is_strict_reserved(&self) -> bool
pub fn is_restricted(&self) -> bool
[src]
pub fn is_restricted(&self) -> bool
pub fn is_null(&self) -> bool
[src]
pub fn is_null(&self) -> bool
pub fn is_numeric(&self) -> bool
[src]
pub fn is_numeric(&self) -> bool
pub fn is_hex_literal(&self) -> bool
[src]
pub fn is_hex_literal(&self) -> bool
pub fn is_bin_literal(&self) -> bool
[src]
pub fn is_bin_literal(&self) -> bool
pub fn is_oct_literal(&self) -> bool
[src]
pub fn is_oct_literal(&self) -> bool
pub fn is_punct(&self) -> bool
[src]
pub fn is_punct(&self) -> bool
pub fn is_string(&self) -> bool
[src]
pub fn is_string(&self) -> bool
pub fn is_double_quoted_string(&self) -> bool
[src]
pub fn is_double_quoted_string(&self) -> bool
pub fn is_single_quoted_string(&self) -> bool
[src]
pub fn is_single_quoted_string(&self) -> bool
pub fn is_regex(&self) -> bool
[src]
pub fn is_regex(&self) -> bool
pub fn is_template(&self) -> bool
[src]
pub fn is_template(&self) -> bool
pub fn is_template_no_sub(&self) -> bool
[src]
pub fn is_template_no_sub(&self) -> bool
pub fn is_template_head(&self) -> bool
[src]
pub fn is_template_head(&self) -> bool
pub fn is_template_middle(&self) -> bool
[src]
pub fn is_template_middle(&self) -> bool
pub fn is_template_tail(&self) -> bool
[src]
pub fn is_template_tail(&self) -> bool
pub fn is_literal(&self) -> bool
[src]
pub fn is_literal(&self) -> bool
pub fn is_comment(&self) -> bool
[src]
pub fn is_comment(&self) -> bool
pub fn is_multi_line_comment(&self) -> bool
[src]
pub fn is_multi_line_comment(&self) -> bool
pub fn is_single_line_comment(&self) -> bool
[src]
pub fn is_single_line_comment(&self) -> bool
pub fn matches_boolean(&self, b: BooleanLiteral) -> bool
[src]
pub fn matches_boolean(&self, b: BooleanLiteral) -> bool
pub fn matches_boolean_str(&self, b: &str) -> bool
[src]
pub fn matches_boolean_str(&self, b: &str) -> bool
pub fn matches_ident_str(&self, name: &str) -> bool
[src]
pub fn matches_ident_str(&self, name: &str) -> bool
pub fn matches_keyword(&self, keyword: Keyword) -> bool
[src]
pub fn matches_keyword(&self, keyword: Keyword) -> bool
pub fn matches_keyword_str(&self, name: &str) -> bool
[src]
pub fn matches_keyword_str(&self, name: &str) -> bool
pub fn matches_numeric(&self, number: Number) -> bool
[src]
pub fn matches_numeric(&self, number: Number) -> bool
pub fn matches_numeric_str(&self, number: &str) -> bool
[src]
pub fn matches_numeric_str(&self, number: &str) -> bool
pub fn matches_punct(&self, p: Punct) -> bool
[src]
pub fn matches_punct(&self, p: Punct) -> bool
pub fn matches_punct_str(&self, s: &str) -> bool
[src]
pub fn matches_punct_str(&self, s: &str) -> bool
pub fn matches_regex(&self, regex: RegEx) -> bool
[src]
pub fn matches_regex(&self, regex: RegEx) -> bool
pub fn matches_regex_str(&self, regex: &str) -> bool
[src]
pub fn matches_regex_str(&self, regex: &str) -> bool
pub fn matches_comment(&self, comment: Comment) -> bool
[src]
pub fn matches_comment(&self, comment: Comment) -> bool
pub fn matches_comment_str(&self, comment: &str) -> bool
[src]
pub fn matches_comment_str(&self, comment: &str) -> bool
pub fn matches_string_content(&self, content: &str) -> bool
[src]
pub fn matches_string_content(&self, content: &str) -> bool
Trait Implementations
impl Debug for Item
[src]
impl Debug for Item
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Item
[src]
impl PartialEq for Item
fn eq(&self, other: &Item) -> bool
[src]
fn eq(&self, other: &Item) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Item) -> bool
[src]
fn ne(&self, other: &Item) -> bool
This method tests for !=
.
impl Clone for Item
[src]
impl Clone for Item
fn clone(&self) -> Item
[src]
fn clone(&self) -> Item
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Deref for Item
[src]
impl Deref for Item