Enum minifier::js::token::Token [−][src]
pub enum Token<'a> { Keyword(Keyword), Char(ReservedChar), String(&'a str), Comment(&'a str), License(&'a str), Other(&'a str), Regex { regex: &'a str, is_global: bool, is_interactive: bool, }, Condition(Condition), Operation(Operation), }
Variants
Keyword(Keyword)
Char(ReservedChar)
String(&'a str)
Comment(&'a str)
License(&'a str)
Other(&'a str)
Regex
Fields of Regex
regex: &'a str | |
is_global: bool | |
is_interactive: bool |
Condition(Condition)
Operation(Operation)
Methods
impl<'a> Token<'a>
[src]
impl<'a> Token<'a>
fn is_comment(&self) -> bool
[src]
fn is_comment(&self) -> bool
fn get_char(&self) -> Option<ReservedChar>
[src]
fn get_char(&self) -> Option<ReservedChar>
fn is_condition(&self) -> bool
[src]
fn is_condition(&self) -> bool
fn is_other(&self) -> bool
[src]
fn is_other(&self) -> bool
fn is_white_character(&self) -> bool
[src]
fn is_white_character(&self) -> bool
Trait Implementations
impl<'a> Debug for Token<'a>
[src]
impl<'a> Debug for Token<'a>
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<'a> PartialEq for Token<'a>
[src]
impl<'a> PartialEq for Token<'a>
fn eq(&self, other: &Token<'a>) -> bool
[src]
fn eq(&self, other: &Token<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Token<'a>) -> bool
[src]
fn ne(&self, other: &Token<'a>) -> bool
This method tests for !=
.
impl<'a> Display for Token<'a>
[src]
impl<'a> Display for Token<'a>