Skip to main content

Crate tl

Crate tl 

Source
Expand description

§rustedbytes-tl

tl is a fast HTML parser written in pure Rust.

By default this crate builds without std or alloc. Enable std for the allocating convenience API:

rustedbytes-tl = { version = "0.1", features = ["std"] }

For the nightly portable SIMD path, enable portable-simd and build with nightly:

cargo +nightly build --features portable-simd

§Provenance

This crate is a fork of astral-tl, modified to add no-std, zero-copy parsing and other improvements.

§License

This project is licensed under the MIT license.

Re-exports§

pub use errors::ParseError;

Modules§

errors
Errors that occur throughout the crate
inline
Inline data structures
queryselector
Query selector API

Structs§

Attributes
Stores all attributes of an HTML tag, as well as additional metadata such as id and class
Bytes
A storage type for raw bytes, used by the parser
Children
A thin wrapper around the children of HTMLTag
ChildrenMut
A thin mutable wrapper around the children of HTMLTag
HTMLTag
Represents a single HTML element
NodeHandle
A detached, external handle to a HTML node, originally obtained from a Parser
Parser
The main HTML parser
ParserOptions
Options for the HTML Parser
VDom
VDom represents a Document Object Model

Enums§

HTMLVersion
HTML Version ()
Node
An HTML Node

Functions§

parse
Parses the given input string using bounded, allocation-free storage.
parse_query_selector
Parses a query selector using bounded, allocation-free storage.

Type Aliases§

ClassVec
Inline class vector
InnerNodeHandle
The inner type of a NodeHandle, used to represent an index into the tags table
RawAttributesMap
The type of map for “raw” attributes
RawChildren
The type of vector for children of an HTML tag
Tree
A list of HTML nodes