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.
Implementations§
source§impl<Impl: SelectorImpl> RelativeSelector<Impl>
impl<Impl: SelectorImpl> RelativeSelector<Impl>
fn from_selector_list(selector_list: SelectorList<Impl>) -> Box<[Self]>
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 for RelativeSelector<Impl>
impl<Impl: PartialEq + SelectorImpl> PartialEq 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 ==
.source§impl<Impl: SelectorImpl> ToShmem for RelativeSelector<Impl>
impl<Impl: SelectorImpl> ToShmem for RelativeSelector<Impl>
impl<Impl: Eq + SelectorImpl> Eq for RelativeSelector<Impl>
impl<Impl: SelectorImpl> StructuralPartialEq for RelativeSelector<Impl>
Auto Trait Implementations§
impl<Impl> Freeze for RelativeSelector<Impl>
impl<Impl> RefUnwindSafe for RelativeSelector<Impl>where
<Impl as SelectorImpl>::Identifier: RefUnwindSafe,
<Impl as SelectorImpl>::LocalName: RefUnwindSafe,
<Impl as SelectorImpl>::AttrValue: RefUnwindSafe,
<Impl as SelectorImpl>::NamespaceUrl: RefUnwindSafe,
<Impl as SelectorImpl>::NamespacePrefix: RefUnwindSafe,
<Impl as SelectorImpl>::NonTSPseudoClass: RefUnwindSafe,
<Impl as SelectorImpl>::PseudoElement: RefUnwindSafe,
impl<Impl> Send for RelativeSelector<Impl>where
<Impl as SelectorImpl>::Identifier: Sync + Send,
<Impl as SelectorImpl>::LocalName: Sync + Send,
<Impl as SelectorImpl>::AttrValue: Sync + Send,
<Impl as SelectorImpl>::NamespaceUrl: Sync + Send,
<Impl as SelectorImpl>::NamespacePrefix: Sync + Send,
<Impl as SelectorImpl>::NonTSPseudoClass: Sync + Send,
<Impl as SelectorImpl>::PseudoElement: Sync + Send,
impl<Impl> Sync for RelativeSelector<Impl>where
<Impl as SelectorImpl>::Identifier: Sync + Send,
<Impl as SelectorImpl>::LocalName: Sync + Send,
<Impl as SelectorImpl>::AttrValue: Sync + Send,
<Impl as SelectorImpl>::NamespaceUrl: Sync + Send,
<Impl as SelectorImpl>::NamespacePrefix: Sync + Send,
<Impl as SelectorImpl>::NonTSPseudoClass: Sync + Send,
<Impl as SelectorImpl>::PseudoElement: Sync + Send,
impl<Impl> Unpin for RelativeSelector<Impl>where
<Impl as SelectorImpl>::Identifier: Unpin,
<Impl as SelectorImpl>::LocalName: Unpin,
<Impl as SelectorImpl>::AttrValue: Unpin,
<Impl as SelectorImpl>::NamespaceUrl: Unpin,
<Impl as SelectorImpl>::NamespacePrefix: Unpin,
<Impl as SelectorImpl>::NonTSPseudoClass: Unpin,
<Impl as SelectorImpl>::PseudoElement: Unpin,
impl<Impl> UnwindSafe for RelativeSelector<Impl>where
<Impl as SelectorImpl>::Identifier: UnwindSafe + RefUnwindSafe,
<Impl as SelectorImpl>::LocalName: UnwindSafe + RefUnwindSafe,
<Impl as SelectorImpl>::AttrValue: UnwindSafe + RefUnwindSafe,
<Impl as SelectorImpl>::NamespaceUrl: UnwindSafe + RefUnwindSafe,
<Impl as SelectorImpl>::NamespacePrefix: 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