pub enum PseudoElement {}Expand description
Pseudo-element variants (not supported for matching).
Trait Implementations§
Source§impl Clone for PseudoElement
impl Clone for PseudoElement
Source§fn clone(&self) -> PseudoElement
fn clone(&self) -> PseudoElement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PseudoElement
impl Debug for PseudoElement
Source§impl PartialEq for PseudoElement
impl PartialEq for PseudoElement
Source§impl PseudoElement for PseudoElement
impl PseudoElement for PseudoElement
Source§type Impl = ScrapeSelector
type Impl = ScrapeSelector
The
SelectorImpl this pseudo-element is used for.Source§fn accepts_state_pseudo_classes(&self) -> bool
fn accepts_state_pseudo_classes(&self) -> bool
Whether the pseudo-element supports a given state selector to the right
of it.
Source§fn valid_after_slotted(&self) -> bool
fn valid_after_slotted(&self) -> bool
Whether this pseudo-element is valid after a ::slotted(..) pseudo.
Source§fn valid_after_before_or_after(&self) -> bool
fn valid_after_before_or_after(&self) -> bool
Whether this pseudo-element is valid when directly after a ::before/::after pseudo.
Source§fn is_element_backed(&self) -> bool
fn is_element_backed(&self) -> bool
Whether this pseudo-element is element-backed.
https://drafts.csswg.org/css-pseudo-4/#element-like
Source§fn is_before_or_after(&self) -> bool
fn is_before_or_after(&self) -> bool
Whether this pseudo-element is ::before or ::after pseudo element,
which are treated specially when deciding what can come after them.
https://drafts.csswg.org/css-pseudo-4/#generated-content
Source§fn specificity_count(&self) -> u32
fn specificity_count(&self) -> u32
The count we contribute to the specificity from this pseudo-element.
Source§fn is_in_pseudo_element_tree(&self) -> bool
fn is_in_pseudo_element_tree(&self) -> bool
Whether this pseudo-element is in a pseudo-element tree (excluding the pseudo-element
root).
https://drafts.csswg.org/css-view-transitions-1/#pseudo-root
Source§impl ToCss for PseudoElement
impl ToCss for PseudoElement
impl Eq for PseudoElement
impl StructuralPartialEq for PseudoElement
Auto Trait Implementations§
impl Freeze for PseudoElement
impl RefUnwindSafe for PseudoElement
impl Send for PseudoElement
impl Sync for PseudoElement
impl Unpin for PseudoElement
impl UnwindSafe for PseudoElement
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