Struct selectors::parser::RelativeSelectorCombinatorCount
source · pub struct RelativeSelectorCombinatorCount {
relative_combinator: Combinator,
pub child_or_descendants: usize,
pub adjacent_or_next_siblings: usize,
}
Expand description
Count of combinators in a given relative selector, not traversing selectors of pseudoclasses.
Fields§
§relative_combinator: Combinator
§child_or_descendants: usize
§adjacent_or_next_siblings: usize
Implementations§
source§impl RelativeSelectorCombinatorCount
impl RelativeSelectorCombinatorCount
sourcepub fn new<Impl: SelectorImpl>(
relative_selector: &RelativeSelector<Impl>,
) -> Self
pub fn new<Impl: SelectorImpl>( relative_selector: &RelativeSelector<Impl>, ) -> Self
Create a new relative selector combinator count from a given relative selector.
sourcepub fn get_match_hint(&self) -> RelativeSelectorMatchHint
pub fn get_match_hint(&self) -> RelativeSelectorMatchHint
Get the match hint based on the current combinator count.
Trait Implementations§
source§impl Clone for RelativeSelectorCombinatorCount
impl Clone for RelativeSelectorCombinatorCount
source§fn clone(&self) -> RelativeSelectorCombinatorCount
fn clone(&self) -> RelativeSelectorCombinatorCount
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 moreimpl Copy for RelativeSelectorCombinatorCount
Auto Trait Implementations§
impl Freeze for RelativeSelectorCombinatorCount
impl RefUnwindSafe for RelativeSelectorCombinatorCount
impl Send for RelativeSelectorCombinatorCount
impl Sync for RelativeSelectorCombinatorCount
impl Unpin for RelativeSelectorCombinatorCount
impl UnwindSafe for RelativeSelectorCombinatorCount
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)