brk_traversable
Trait for navigating and exporting hierarchical data structures.
What It Enables
Traverse nested data collections (datasets, grouped metrics) as trees for inspection, and iterate all exportable vectors for bulk data export.
Key Features
- Tree navigation: Convert nested structs into
TreeNodehierarchies for exploration - Export iteration: Walk all
AnyExportableVecinstances in a data structure - Derive macro:
#[derive(Traversable)]withderivefeature - Compression backends: Support for PCO, LZ4, ZeroCopy, Zstd via feature flags
- Blanket implementations: Works with
Box<T>,Option<T>,BTreeMap<K, V>
Core API
Supported Vec Types
All vecdb vector types implement Traversable:
BytesVec,EagerVec,PcoVec(withpcofeature)ZeroCopyVec(withzerocopyfeature)LZ4Vec,ZstdVec(with respective features)LazyVecFrom1/2/3for derived vectors
Feature Flags
derive- Enable#[derive(Traversable)]macropco- PCO compression supportzerocopy- Zero-copy vector supportlz4- LZ4 compression supportzstd- Zstd compression support
Built On
brk_typesforTreeNodetypebrk_traversable_derivefor the derive macro (optional)