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
idandclass - Bytes
- A storage type for raw bytes, used by the parser
- Children
- A thin wrapper around the children of
HTMLTag - Children
Mut - A thin mutable wrapper around the children of
HTMLTag - HTMLTag
- Represents a single HTML element
- Node
Handle - A detached, external handle to a HTML node, originally obtained from a Parser
- Parser
- The main HTML parser
- Parser
Options - Options for the HTML Parser
- VDom
- VDom represents a Document Object Model
Enums§
- HTML
Version - 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§
- Class
Vec - Inline class vector
- Inner
Node Handle - The inner type of a NodeHandle, used to represent an index into the tags table
- RawAttributes
Map - The type of map for “raw” attributes
- RawChildren
- The type of vector for children of an HTML tag
- Tree
- A list of HTML nodes