Struct select::node::Node
[−]
[src]
pub struct Node<'a> { /* fields omitted */ }
A Node.
Methods
impl<'a> Node<'a>
[src]
fn new(document: &'a Document, index: usize) -> Option<Node<'a>>
fn index(&self) -> usize
fn raw(&self) -> &'a Raw
fn data(&self) -> &'a Data
fn name(&self) -> Option<&'a str>
fn attr(&self, name: &str) -> Option<&'a str>
fn parent(&self) -> Option<Node<'a>>
fn prev(&self) -> Option<Node<'a>>
fn next(&self) -> Option<Node<'a>>
fn first_child(&self) -> Option<Node<'a>>
fn last_child(&self) -> Option<Node<'a>>
fn text(&self) -> String
fn html(&self) -> String
fn inner_html(&self) -> String
fn find<P: Predicate>(&self, predicate: P) -> Find<'a, P>
fn is<P: Predicate>(&self, p: P) -> bool
fn as_text(&self) -> Option<&'a str>
fn as_comment(&self) -> Option<&'a str>
fn children(&self) -> Children<'a>
fn descendants(&self) -> Descendants<'a>
Trait Implementations
impl<'a> Copy for Node<'a>
[src]
impl<'a> Clone for Node<'a>
[src]
fn clone(&self) -> Node<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a> PartialEq for Node<'a>
[src]
fn eq(&self, __arg_0: &Node<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Node<'a>) -> bool
This method tests for !=
.