Struct selectors::parser::RelativeSelector
source · pub struct RelativeSelector<Impl: SelectorImpl> {
pub match_hint: RelativeSelectorMatchHint,
pub selector: Selector<Impl>,
}
Expand description
Storage for a relative selector.
Fields§
§match_hint: RelativeSelectorMatchHint
Match space constraining hint.
selector: Selector<Impl>
The selector. Guaranteed to contain RelativeSelectorAnchor
and the relative combinator in parse order.
Trait Implementations§
source§impl<Impl: Clone + SelectorImpl> Clone for RelativeSelector<Impl>
impl<Impl: Clone + SelectorImpl> Clone for RelativeSelector<Impl>
source§fn clone(&self) -> RelativeSelector<Impl>
fn clone(&self) -> RelativeSelector<Impl>
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<Impl: PartialEq + SelectorImpl> PartialEq<RelativeSelector<Impl>> for RelativeSelector<Impl>
impl<Impl: PartialEq + SelectorImpl> PartialEq<RelativeSelector<Impl>> for RelativeSelector<Impl>
source§fn eq(&self, other: &RelativeSelector<Impl>) -> bool
fn eq(&self, other: &RelativeSelector<Impl>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<Impl: Eq + SelectorImpl> Eq for RelativeSelector<Impl>
impl<Impl: SelectorImpl> StructuralEq for RelativeSelector<Impl>
impl<Impl: SelectorImpl> StructuralPartialEq for RelativeSelector<Impl>
Auto Trait Implementations§
impl<Impl> RefUnwindSafe for RelativeSelector<Impl>where <Impl as SelectorImpl>::AttrValue: RefUnwindSafe, <Impl as SelectorImpl>::Identifier: RefUnwindSafe, <Impl as SelectorImpl>::LocalName: RefUnwindSafe, <Impl as SelectorImpl>::NamespacePrefix: RefUnwindSafe, <Impl as SelectorImpl>::NamespaceUrl: RefUnwindSafe, <Impl as SelectorImpl>::NonTSPseudoClass: RefUnwindSafe, <Impl as SelectorImpl>::PseudoElement: RefUnwindSafe,
impl<Impl> Send for RelativeSelector<Impl>where <Impl as SelectorImpl>::AttrValue: Send + Sync, <Impl as SelectorImpl>::Identifier: Send + Sync, <Impl as SelectorImpl>::LocalName: Send + Sync, <Impl as SelectorImpl>::NamespacePrefix: Send + Sync, <Impl as SelectorImpl>::NamespaceUrl: Send + Sync, <Impl as SelectorImpl>::NonTSPseudoClass: Send + Sync, <Impl as SelectorImpl>::PseudoElement: Send + Sync,
impl<Impl> Sync for RelativeSelector<Impl>where <Impl as SelectorImpl>::AttrValue: Send + Sync, <Impl as SelectorImpl>::Identifier: Send + Sync, <Impl as SelectorImpl>::LocalName: Send + Sync, <Impl as SelectorImpl>::NamespacePrefix: Send + Sync, <Impl as SelectorImpl>::NamespaceUrl: Send + Sync, <Impl as SelectorImpl>::NonTSPseudoClass: Send + Sync, <Impl as SelectorImpl>::PseudoElement: Send + Sync,
impl<Impl> Unpin for RelativeSelector<Impl>where <Impl as SelectorImpl>::AttrValue: Unpin, <Impl as SelectorImpl>::Identifier: Unpin, <Impl as SelectorImpl>::LocalName: Unpin, <Impl as SelectorImpl>::NamespacePrefix: Unpin, <Impl as SelectorImpl>::NamespaceUrl: Unpin, <Impl as SelectorImpl>::NonTSPseudoClass: Unpin, <Impl as SelectorImpl>::PseudoElement: Unpin,
impl<Impl> UnwindSafe for RelativeSelector<Impl>where <Impl as SelectorImpl>::AttrValue: UnwindSafe + RefUnwindSafe, <Impl as SelectorImpl>::Identifier: UnwindSafe + RefUnwindSafe, <Impl as SelectorImpl>::LocalName: UnwindSafe + RefUnwindSafe, <Impl as SelectorImpl>::NamespacePrefix: UnwindSafe + RefUnwindSafe, <Impl as SelectorImpl>::NamespaceUrl: UnwindSafe + RefUnwindSafe, <Impl as SelectorImpl>::NonTSPseudoClass: UnwindSafe + RefUnwindSafe, <Impl as SelectorImpl>::PseudoElement: UnwindSafe + RefUnwindSafe,
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