pub enum RelativeSelectorMatchingState {
None,
Considered,
ConsideredAnchor,
}
Expand description
Whether or not this matching considered relative selector.
Variants§
None
Was not considered for any relative selector.
Considered
Relative selector was considered for a match, but the element to be under matching would not anchor the relative selector. i.e. The relative selector was not part of the first compound selector (in match order).
ConsideredAnchor
Same as above, but the relative selector was part of the first compound selector (in match order).
Implementations§
source§impl RelativeSelectorMatchingState
impl RelativeSelectorMatchingState
sourcepub fn considered_anchor(&mut self)
pub fn considered_anchor(&mut self)
Update the matching state to indicate that the relative selector matching happened in the subject position.
sourcepub fn considered(&mut self)
pub fn considered(&mut self)
Update the matching state to indicate that the relative selector matching happened in a non-subject position.
Trait Implementations§
source§impl Clone for RelativeSelectorMatchingState
impl Clone for RelativeSelectorMatchingState
source§fn clone(&self) -> RelativeSelectorMatchingState
fn clone(&self) -> RelativeSelectorMatchingState
Returns a copy 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 PartialEq<RelativeSelectorMatchingState> for RelativeSelectorMatchingState
impl PartialEq<RelativeSelectorMatchingState> for RelativeSelectorMatchingState
source§fn eq(&self, other: &RelativeSelectorMatchingState) -> bool
fn eq(&self, other: &RelativeSelectorMatchingState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RelativeSelectorMatchingState
impl StructuralPartialEq for RelativeSelectorMatchingState
Auto Trait Implementations§
impl RefUnwindSafe for RelativeSelectorMatchingState
impl Send for RelativeSelectorMatchingState
impl Sync for RelativeSelectorMatchingState
impl Unpin for RelativeSelectorMatchingState
impl UnwindSafe for RelativeSelectorMatchingState
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