pub struct Selector { /* private fields */ }Implementations§
Source§impl Selector
impl Selector
pub fn new() -> Self
pub fn from_tag_name(&mut self, tag_name: &str) -> &mut Self
pub fn from_class_name(&mut self, class_name: &str) -> &mut Self
pub fn from_id(&mut self, id: &str) -> &mut Self
pub fn select<'a>(&self, element: &'a HtmlElement) -> Selection<'a>
pub fn select_first<'a>( &self, element: &'a HtmlElement, ) -> Option<&'a HtmlElement>
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnwindSafe for Selector
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