Enum selectors::parser::Combinator [] [src]

pub enum Combinator {
    Child,
    Descendant,
    NextSibling,
    LaterSibling,
    PseudoElement,
    SlotAssignment,
}

Variants

A dummy combinator we use to the left of pseudo-elements.

It serializes as the empty string, and acts effectively as a child combinator in most cases. If we ever actually start using a child combinator for this, we will need to fix up the way hashes are computed for revalidation selectors.

Another combinator used for ::slotted(), which represent the jump from a node to its assigned slot.

Methods

impl Combinator
[src]

[src]

Returns true if this combinator is a child or descendant combinator.

[src]

Returns true if this combinator is a pseudo-element combinator.

[src]

Returns true if this combinator is a next- or later-sibling combinator.

Trait Implementations

impl Clone for Combinator
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Combinator
[src]

impl Debug for Combinator
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for Combinator
[src]

impl PartialEq for Combinator
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl ToCss for Combinator
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

Serialize self in CSS syntax and return a string. Read more