Struct select::node::Node [] [src]

pub struct Node<'a> {
    // some 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) -> &Raw

fn data(&self) -> &Data

fn name(&self) -> Option<&str>

fn attr(&self, name: &str) -> Option<&str>

fn parent(&self) -> Option<Node<'a>>

fn prev(&self) -> Option<Node<'a>>

fn next(&self) -> Option<Node<'a>>

fn text(&self) -> String

fn html(&self) -> String

fn inner_html(&self) -> String

fn find<P: Predicate>(&self, p: P) -> Selection<'a>

fn is<P: Predicate>(&self, p: P) -> bool

fn as_text(&self) -> Option<&str>

fn as_comment(&self) -> Option<&str>

fn children(&self) -> Selection<'a>

Trait Implementations

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 !=.

impl<'a> Debug for Node<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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> Copy for Node<'a>
[src]

impl<'a> Serializable for Node<'a>
[src]

fn serialize<'w, W: Write>(&self, serializer: &mut Serializer<'w, W>, traversal_scope: TraversalScope) -> Result<()>