Struct cssparser::TokenSerializationType
[−]
[src]
pub struct TokenSerializationType(_);
A category of token. See the needs_separator_when_before
method.
Methods
impl TokenSerializationType
[src]
pub fn nothing() -> TokenSerializationType
[src]
Return a value that represents the absence of a token, e.g. before the start of the input.
pub fn set_if_nothing(&mut self, new_value: TokenSerializationType)
[src]
If this value is TokenSerializationType::nothing()
, set it to the given value instead.
pub fn needs_separator_when_before(self, other: TokenSerializationType) -> bool
[src]
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 Copy for TokenSerializationType
[src]
impl Clone for TokenSerializationType
[src]
fn clone(&self) -> TokenSerializationType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for TokenSerializationType
[src]
impl PartialEq for TokenSerializationType
[src]
fn eq(&self, __arg_0: &TokenSerializationType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TokenSerializationType) -> bool
[src]
This method tests for !=
.