[−][src]Enum html_minifier::js::Token
Variants
Keyword(Keyword)Char(ReservedChar)String(&'a str)Comment(&'a str)License(&'a str)Other(&'a str)RegexFields of Regex
Condition(Condition)Operation(Operation)CreatedVarDecl(String)CreatedVar(String)Methods
impl<'a> Token<'a>[src]
pub fn is_comment(&self) -> bool[src]
pub fn get_char(&self) -> Option<ReservedChar>[src]
pub fn is_char(&self, rc: ReservedChar) -> bool[src]
pub fn is_operation(&self, ope: Operation) -> bool[src]
pub fn is_condition(&self, cond: Condition) -> bool[src]
pub fn is_other(&self) -> bool[src]
pub fn get_other(&self) -> Option<&str>[src]
pub fn is_white_character(&self) -> bool[src]
pub fn is_keyword(&self) -> bool[src]
pub fn get_keyword(&self) -> Option<Keyword>[src]
pub fn is_string(&self) -> bool[src]
pub fn get_string(&self) -> Option<&str>[src]
pub fn is_regex(&self) -> bool[src]
pub fn is_created_var_decl(&self) -> bool[src]
pub fn is_created_var(&self) -> bool[src]
Trait Implementations
impl<'a> Ord for Token<'a>[src]
fn cmp(&self, other: &Token<'a>) -> Ordering[src]
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self[src]
🔬 This is a nightly-only experimental API. (
clamp)Restrict a value to a certain interval. Read more
impl<'a> Clone for Token<'a>[src]
fn clone(&self) -> Token<'a>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<'a> Eq for Token<'a>[src]
impl<'a> PartialOrd<Token<'a>> for Token<'a>[src]
fn partial_cmp(&self, other: &Token<'a>) -> Option<Ordering>[src]
fn lt(&self, other: &Token<'a>) -> bool[src]
fn le(&self, other: &Token<'a>) -> bool[src]
fn gt(&self, other: &Token<'a>) -> bool[src]
fn ge(&self, other: &Token<'a>) -> bool[src]
impl<'a> PartialEq<Token<'a>> for Token<'a>[src]
impl<'a> Display for Token<'a>[src]
impl<'a> Debug for Token<'a>[src]
impl<'a> Hash for Token<'a>[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From for T[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,