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)RegexFields 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>pub fn is_comment(&self) -> bool[src]
pub fn is_comment(&self) -> boolpub fn get_char(&self) -> Option<ReservedChar>[src]
pub fn get_char(&self) -> Option<ReservedChar>pub fn is_char(&self, rc: ReservedChar) -> bool[src]
pub fn is_char(&self, rc: ReservedChar) -> boolpub fn is_operation(&self, ope: Operation) -> bool[src]
pub fn is_operation(&self, ope: Operation) -> boolpub fn is_condition(&self, cond: Condition) -> bool[src]
pub fn is_condition(&self, cond: Condition) -> boolpub fn is_other(&self) -> bool[src]
pub fn is_other(&self) -> boolpub fn is_white_character(&self) -> bool[src]
pub fn is_white_character(&self) -> boolpub fn get_keyword(&self) -> Option<Keyword>[src]
pub fn get_keyword(&self) -> Option<Keyword>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) -> ResultFormats 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>) -> boolThis 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>) -> boolThis method tests for !=.
impl<'a> Display for Token<'a>[src]
impl<'a> Display for Token<'a>