pub struct CompoundSelector {
pub scope: Scope,
pub parts: Vec<Selector>,
}
Expand description
Represents a component of a parsed CSS selector is used to match a single element.
Fields§
§scope: Scope
The scope of the selector.
parts: Vec<Selector>
The individual parts that make up the compound selector.
Implementations§
Source§impl CompoundSelector
impl CompoundSelector
Sourcepub fn parse(
selector: &str,
) -> Result<Vec<CompoundSelector>, UnexpectedTokenError>
pub fn parse( selector: &str, ) -> Result<Vec<CompoundSelector>, UnexpectedTokenError>
Parses the string and converts it to a list of CompoundSelector
s.
Trait Implementations§
Source§impl Clone for CompoundSelector
impl Clone for CompoundSelector
Source§fn clone(&self) -> CompoundSelector
fn clone(&self) -> CompoundSelector
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 moreAuto Trait Implementations§
impl Freeze for CompoundSelector
impl RefUnwindSafe for CompoundSelector
impl Send for CompoundSelector
impl Sync for CompoundSelector
impl Unpin for CompoundSelector
impl UnwindSafe for CompoundSelector
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