Enum minifier::css::token::Token [−][src]
pub enum Token<'a> { Comment(&'a str), License(&'a str), Char(ReservedChar), Other(&'a str), SelectorElement(SelectorElement<'a>), String(&'a str), SelectorOperator(SelectorOperator), }
Variants
Comment(&'a str)
Comment.
License(&'a str)
Comment starting with /**
.
Char(ReservedChar)
Other(&'a str)
SelectorElement(SelectorElement<'a>)
String(&'a str)
SelectorOperator(SelectorOperator)
Methods
impl<'a> Token<'a>
[src]
impl<'a> Token<'a>
fn is_comment(&self) -> bool
[src]
fn is_comment(&self) -> bool
fn is_char(&self) -> bool
[src]
fn is_char(&self) -> bool
fn get_char(&self) -> Option<ReservedChar>
[src]
fn get_char(&self) -> Option<ReservedChar>
fn is_useless(&self) -> bool
[src]
fn is_useless(&self) -> bool
fn is_media(&self, media: &str) -> bool
[src]
fn is_media(&self, media: &str) -> bool
fn is_a_media(&self) -> bool
[src]
fn is_a_media(&self) -> bool
fn is_a_license(&self) -> bool
[src]
fn is_a_license(&self) -> bool
Trait Implementations
impl<'a> Eq for Token<'a>
[src]
impl<'a> Eq for Token<'a>
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)
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> Clone for Token<'a>
[src]
impl<'a> Clone for Token<'a>
fn clone(&self) -> Token<'a>
[src]
fn clone(&self) -> Token<'a>
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<'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> Display for Token<'a>
[src]
impl<'a> Display 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<ReservedChar> for Token<'a>
[src]
impl<'a> PartialEq<ReservedChar> for Token<'a>