pub struct Selector<'a>(/* private fields */);Expand description
A set of selector alternatives separated by ,, for example div, span.
Implementations§
Source§impl<'a> Selector<'a>
impl<'a> Selector<'a>
Sourcepub fn join(&self, other: &Selector<'a>) -> Selector<'a>
pub fn join(&self, other: &Selector<'a>) -> Selector<'a>
SelectorGroup uses the underlying join() method of the
SelectorList, combined via the product of the two
SelectorGroup’s items. For example:
div, span {
.opened, :hover {
color: red;
}
}becomes
div .opened, div :hover, span .opened, span :hover {
color: red;
}Methods from Deref<Target = MinVec<SelectorPath<'a>, 1>>§
Trait Implementations§
impl<'a> Eq for Selector<'a>
impl<'a> StructuralPartialEq for Selector<'a>
Auto Trait Implementations§
impl<'a> Freeze for Selector<'a>
impl<'a> RefUnwindSafe for Selector<'a>
impl<'a> Send for Selector<'a>
impl<'a> Sync for Selector<'a>
impl<'a> Unpin for Selector<'a>
impl<'a> UnwindSafe for Selector<'a>
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