Struct cssparser::TokenSerializationType [] [src]

pub struct TokenSerializationType(_);

A category of token. See the needs_separator_when_before method.

Methods

impl TokenSerializationType
[src]

Return a value that represents the absence of a token, e.g. before the start of the input.

If this value is TokenSerializationType::nothing(), set it to the given value instead.

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.

See https://drafts.csswg.org/css-syntax/#serialization

Trait Implementations

impl Copy for TokenSerializationType
[src]

impl Clone for TokenSerializationType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for TokenSerializationType
[src]

impl PartialEq for TokenSerializationType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for TokenSerializationType
[src]

Formats the value using the given formatter.