pub struct SelectorChain {
pub segments: Vec<SelectorSegment>,
}Expand description
A chain of selector segments connected by combinators.
Fields§
§segments: Vec<SelectorSegment>Segments in this chain, each connected to the next by its combinator.
Implementations§
Source§impl SelectorChain
impl SelectorChain
Sourcepub fn single(segment: SelectorSegment) -> Self
pub fn single(segment: SelectorSegment) -> Self
Create a chain with a single segment.
Sourcepub fn push(&mut self, segment: SelectorSegment)
pub fn push(&mut self, segment: SelectorSegment)
Add a segment to this chain.
Trait Implementations§
Source§impl Clone for SelectorChain
impl Clone for SelectorChain
Source§fn clone(&self) -> SelectorChain
fn clone(&self) -> SelectorChain
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 moreAuto Trait Implementations§
impl Freeze for SelectorChain
impl RefUnwindSafe for SelectorChain
impl Send for SelectorChain
impl Sync for SelectorChain
impl Unpin for SelectorChain
impl UnwindSafe for SelectorChain
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more