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

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

Variants

Child
Descendant
NextSibling
LaterSibling
PseudoElement

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.

SlotAssignment

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

Part

Another combinator used for ::part(), which represents the jump from the part to the containing shadow host.

Implementations

impl Combinator[src]

pub fn is_ancestor(&self) -> bool[src]

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

pub fn is_pseudo_element(&self) -> bool[src]

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

pub fn is_sibling(&self) -> bool[src]

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

Trait Implementations

impl Clone for Combinator[src]

impl Copy for Combinator[src]

impl Debug for Combinator[src]

impl Eq for Combinator[src]

impl PartialEq<Combinator> for Combinator[src]

impl StructuralEq for Combinator[src]

impl StructuralPartialEq for Combinator[src]

impl ToCss for Combinator[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.