Enum selectors::parser::Combinator
[−]
[src]
pub enum Combinator {
Child,
Descendant,
NextSibling,
LaterSibling,
PseudoElement,
SlotAssignment,
}Variants
ChildDescendantNextSiblingLaterSiblingPseudoElementA 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.
SlotAssignmentAnother combinator used for ::slotted(), which represent the jump from a node to its assigned slot.
Methods
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]
fn clone(&self) -> Combinator[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 Copy for Combinator[src]
impl Debug for Combinator[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Eq for Combinator[src]
impl PartialEq for Combinator[src]
fn eq(&self, __arg_0: &Combinator) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.