Enum selectors::parser::Combinator [−][src]
pub enum Combinator { Child, Descendant, NextSibling, LaterSibling, PseudoElement, SlotAssignment, Part, }
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.
Another combinator used for ::part()
, which represents the jump from
the part to the containing shadow host.
Implementations
impl Combinator
[src]
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 Clone for Combinator
[src]fn clone(&self) -> Combinator
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Combinator
[src]
impl Copy for Combinator
[src]impl Eq for Combinator
[src]
impl Eq for Combinator
[src]impl PartialEq<Combinator> for Combinator
[src]
impl PartialEq<Combinator> for Combinator
[src]impl StructuralEq for Combinator
[src]
impl StructuralEq for Combinator
[src]impl StructuralPartialEq for Combinator
[src]
impl StructuralPartialEq for Combinator
[src]Auto Trait Implementations
impl RefUnwindSafe for Combinator
impl RefUnwindSafe for Combinator
impl Send for Combinator
impl Send for Combinator
impl Sync for Combinator
impl Sync for Combinator
impl Unpin for Combinator
impl Unpin for Combinator
impl UnwindSafe for Combinator
impl UnwindSafe for Combinator