pub struct Selectors { /* private fields */ }
Expand description
A full set of selectors.
Implementations§
source§impl Selectors
impl Selectors
sourcepub fn css_ok(self) -> Result<Self, BadSelector>
pub fn css_ok(self) -> Result<Self, BadSelector>
Validate that this selector is ok to use in css.
Selectors
can contain backref (&
), but those must be
resolved before using the Selectors
in css.
sourcepub fn no_placeholder(&self) -> Option<Self>
pub fn no_placeholder(&self) -> Option<Self>
Get a vec of the non-placeholder selectors in self.
sourcepub fn has_trailing_combinator(&self) -> bool
pub fn has_trailing_combinator(&self) -> bool
Return true if any of these selectors ends with a combinator
Trait Implementations§
source§impl PartialEq for Selectors
impl PartialEq for Selectors
source§impl PartialOrd for Selectors
impl PartialOrd for Selectors
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Selectors
impl StructuralEq for Selectors
impl StructuralPartialEq for Selectors
Auto Trait Implementations§
impl RefUnwindSafe for Selectors
impl Send for Selectors
impl Sync for Selectors
impl Unpin for Selectors
impl UnwindSafe for Selectors
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