Struct cssparser::TokenSerializationType
[−]
[src]
pub struct TokenSerializationType(_);
A category of token. See the needs_separator_when_before method.
Methods
impl TokenSerializationType[src]
fn nothing() -> TokenSerializationType
Return a value that represents the absence of a token, e.g. before the start of the input.
fn set_if_nothing(&mut self, new_value: TokenSerializationType)
If this value is TokenSerializationType::nothing(), set it to the given value instead.
fn needs_separator_when_before(self, other: TokenSerializationType) -> bool
Return true if, when a token of category self is serialized just before
a token of category other with no whitespace in between,
an empty comment /**/ needs to be inserted between them
so that they are not re-parsed as a single token.
Trait Implementations
impl Debug for TokenSerializationType[src]
impl PartialEq for TokenSerializationType[src]
fn eq(&self, __arg_0: &TokenSerializationType) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &TokenSerializationType) -> bool
This method tests for !=.
impl Eq for TokenSerializationType[src]
impl Clone for TokenSerializationType[src]
fn clone(&self) -> TokenSerializationType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more