pub struct CssPath {
pub selectors: Vec<CssPathSelector>,
}
Expand description
Represents a full CSS path (i.e. the “div#id.class” selector belonging to a CSS “content group” (the following key-value block)).
ⓘ
"#div > .my_class:focus" ==
[
CssPathSelector::Type(NodeTypePath::Div),
CssPathSelector::PseudoSelector(CssPathPseudoSelector::LimitChildren),
CssPathSelector::Class("my_class"),
CssPathSelector::PseudoSelector(CssPathPseudoSelector::Focus),
]
Fields§
§selectors: Vec<CssPathSelector>
Implementations§
Trait Implementations§
Source§impl Ord for CssPath
impl Ord for CssPath
Source§impl PartialOrd for CssPath
impl PartialOrd for CssPath
impl Eq for CssPath
impl StructuralPartialEq for CssPath
Auto Trait Implementations§
impl Freeze for CssPath
impl RefUnwindSafe for CssPath
impl Send for CssPath
impl Sync for CssPath
impl Unpin for CssPath
impl UnwindSafe for CssPath
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)