pub struct Node<'a> { /* private fields */ }
Expand description
The HTML node
Implementations§
Source§impl<'a> Node<'a>
impl<'a> Node<'a>
Sourcepub fn select(&self, selector: &'static str) -> Result<Option<Node<'a>>>
pub fn select(&self, selector: &'static str) -> Result<Option<Node<'a>>>
Select HTML node by CSS selector
Sourcepub fn select_all(
&mut self,
selector: &'static str,
) -> Result<Option<Nodes<'_, '_>>>
pub fn select_all( &mut self, selector: &'static str, ) -> Result<Option<Nodes<'_, '_>>>
Select HTML nodes by CSS selector
Sourcepub fn filter_text(&self, black_list: &[&str]) -> String
pub fn filter_text(&self, black_list: &[&str]) -> String
Returns node content from node excluding tags from black list
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Node<'a>
impl<'a> !RefUnwindSafe for Node<'a>
impl<'a> !Send for Node<'a>
impl<'a> !Sync for Node<'a>
impl<'a> Unpin for Node<'a>
impl<'a> !UnwindSafe for Node<'a>
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