[][src]Struct extrablatt::extract::MetaNode

pub struct MetaNode<'a> { /* fields omitted */ }

Implementations

impl<'a> MetaNode<'a>[src]

pub fn attr<'b>(&'a self, attr: &'b str) -> Option<&'a str>[src]

pub fn name_attr(&self) -> Option<&str>[src]

Value of the name attribute in the node.

pub fn property_attr(&self) -> Option<&str>[src]

Value of the property attribute in the node.

pub fn content_attr(&self) -> Option<&str>[src]

Value of the content attribute in the node.

pub fn value_attr(&self) -> Option<&str>[src]

Value of the value attribute in the node.

pub fn key(&self) -> Option<&str>[src]

pub fn value(&self) -> Option<&str>[src]

pub fn is_key_value(&self) -> bool[src]

Methods from Deref<Target = Node<'a>>

pub fn index(&self) -> usize[src]

Get the index of this Node in its Document.

pub fn raw(&self) -> &'a Raw[src]

Obtain the inner representation of this Node.

pub fn data(&self) -> &'a Data[src]

Get the text node, HTML element, or comment from a Node.

pub fn name(&self) -> Option<&'a str>[src]

Get the name of a Node if it is an HTML element, or None otherwise.

pub fn attr(&self, name: &str) -> Option<&'a str>[src]

Get the value of the attribute name from a Node representing a HTML element.

pub fn attrs(&self) -> Attrs<'a>[src]

Get an iterator over the names and values of attributes of the Element. Returns an empty iterator for non Element nodes.

pub fn parent(&self) -> Option<Node<'a>>[src]

pub fn prev(&self) -> Option<Node<'a>>[src]

pub fn next(&self) -> Option<Node<'a>>[src]

pub fn first_child(&self) -> Option<Node<'a>>[src]

pub fn last_child(&self) -> Option<Node<'a>>[src]

pub fn text(&self) -> String[src]

Get the combined textual content of a Node and all of its children.

pub fn html(&self) -> String[src]

Serialize a Node to an HTML string.

pub fn inner_html(&self) -> String[src]

Serialize a Node's children to an HTML string.

pub fn find<P>(&self, predicate: P) -> Find<'a, P> where
    P: Predicate
[src]

Search for Nodes fulfilling predicate in the descendants of a Node.

pub fn is<P>(&self, p: P) -> bool where
    P: Predicate
[src]

Evaluate a predicate on this Node.

pub fn as_text(&self) -> Option<&'a str>[src]

Get the text of a text Node, or None if the node is not text.

pub fn as_comment(&self) -> Option<&'a str>[src]

Get the text of a comment Node, or None if the node is not a comment.

pub fn children(&self) -> Children<'a>[src]

Construct an iterator over a Node's child Nodes.

pub fn descendants(&self) -> Descendants<'a>[src]

Construct an iterator over a Node's descendant (transitive children) Nodes.

Trait Implementations

impl<'a> Deref for MetaNode<'a>[src]

type Target = Node<'a>

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for MetaNode<'a>

impl<'a> !Send for MetaNode<'a>

impl<'a> !Sync for MetaNode<'a>

impl<'a> Unpin for MetaNode<'a>

impl<'a> !UnwindSafe for MetaNode<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.