pub enum Selector {
Root,
Everything,
Element(Element),
}Expand description
What a Global rule applies to.
Variants§
Root
The document’s root, :root.
Everything
Every element and its ::before and ::after.
Element(Element)
Every element with the tag.
Trait Implementations§
impl Copy for Selector
impl Eq for Selector
Source§impl Ord for Selector
impl Ord for Selector
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Selector
impl PartialOrd for Selector
impl StructuralPartialEq for Selector
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnsafeUnpin for Selector
impl UnwindSafe for Selector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more