pub struct CssSelector { /* private fields */ }Expand description
A structure representing the CSS selector.
Implementations§
Source§impl CssSelector
impl CssSelector
pub fn part(self, part: CssSelectorPart) -> Self
pub fn add_part(&mut self, part: CssSelectorPart)
pub fn class<T: ToString>(self, class: T) -> Self
pub fn add_class<T: ToString>(&mut self, class: T)
pub fn element<T: ToString>(self, element: T) -> Self
pub fn add_element<T: ToString>(&mut self, element: T)
Trait Implementations§
Source§impl Clone for CssSelector
impl Clone for CssSelector
Source§fn clone(&self) -> CssSelector
fn clone(&self) -> CssSelector
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 moreSource§impl Debug for CssSelector
impl Debug for CssSelector
Source§impl Default for CssSelector
impl Default for CssSelector
Source§fn default() -> CssSelector
fn default() -> CssSelector
Returns the “default value” for a type. Read more
Source§impl Display for CssSelector
impl Display for CssSelector
Source§impl From<&[&str]> for CssSelector
impl From<&[&str]> for CssSelector
Source§fn from(value: &[&str]) -> Self
fn from(value: &[&str]) -> Self
Creates CssSelector from a collection of strings.
Source§impl From<&[CssSelectorPart]> for CssSelector
impl From<&[CssSelectorPart]> for CssSelector
Source§fn from(value: &[CssSelectorPart]) -> Self
fn from(value: &[CssSelectorPart]) -> Self
Creates CssSelector from a slice of CssSelectorPart.
Source§impl From<&str> for CssSelector
impl From<&str> for CssSelector
Source§fn from(value: &str) -> Self
fn from(value: &str) -> Self
Creates CssSelector from string.
Source§impl From<CssSelectorPart> for CssSelector
impl From<CssSelectorPart> for CssSelector
Source§fn from(value: CssSelectorPart) -> Self
fn from(value: CssSelectorPart) -> Self
Creates CssSelector from CssSelectorPart.
Auto Trait Implementations§
impl Freeze for CssSelector
impl RefUnwindSafe for CssSelector
impl Send for CssSelector
impl Sync for CssSelector
impl Unpin for CssSelector
impl UnwindSafe for CssSelector
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