markex
Fast, non-validating markup element extractor for Tag elements (XML-like), and later Markdown elements.
- Fast Extraction: Optimized for finding defined element structures without full document parsing.
- Owned & Borrowed: Provides both owned (
Parts) and zero-copy reference (PartsRef) extraction. - Iterators: Streaming iteration via
TagIterandTagRefIter.
Quick Start
use ;
Zero-copy References
For high-performance scenarios, use extract_refs to get PartRef which contains slices of the original input.
use tag;
let input = "<FILE path='a.txt'>content</FILE>";
let parts_ref = extract_refs;
for part in parts_ref
API Highlights
tag::extract(...) -> Parts: Returns owned data.tag::extract_refs(...) -> PartsRef: Returns references (zero-copy).Parts / PartsRef: Collection-like structures withtag_elems(),texts(), and iteration support.TagIter / TagRefIter: Lower-level iterators for streaming processing.