[−][src]Enum selectors::parser::Combinator
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.
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]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Combinator
[src]
impl Debug for Combinator
[src]
impl Eq for Combinator
[src]
impl PartialEq<Combinator> for Combinator
[src]
fn eq(&self, other: &Combinator) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Combinator
[src]
impl StructuralPartialEq for Combinator
[src]
impl ToCss for Combinator
[src]
Auto Trait Implementations
impl RefUnwindSafe for Combinator
impl Send for Combinator
impl Sync for Combinator
impl Unpin for Combinator
impl UnwindSafe for Combinator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,