[][src]Module toks::prelude

Prelude module contains several important traits that provide many of the convenience imports in advance.

Re-exports

pub use html5ever;
pub use html5ever::interface::Attribute;

Structs

QualName

A fully qualified name (with a namespace), used to depict names of tags and attributes.

RcDom

The DOM itself; the result of parsing.

RefCell

A mutable memory location with dynamically checked borrow rules

Enums

NodeData

The different kinds of nodes in the DOM.

Traits

TendrilSink

Trait for types that can process a tendril.

Tok

Tok in short for token which is used to recursively walk through rcdom::Handle when QualName match is found process function is called.

Functions

parse_document

Parse an HTML document

recursion

Helper function which walks through html5ever::rcdom::Handle NodeData::Element branch recursively and fires Tok``process function if QualName is found by is_match.

Type Definitions

Handle

Reference to a DOM node.

Toks

Toks convenience type alias to Vec of Tok's.