pub struct ZoneMaps {
pub max_heading_depth: u8,
pub heading_slugs: HashSet<String>,
pub heading_contents: HashSet<String>,
pub code_languages: HashSet<String>,
pub frontmatter_keys: HashSet<String>,
pub title: Option<String>,
pub tags: Vec<String>,
}Expand description
Statistical metadata per document used for query pruning (Zone Maps).
Before scanning a document’s blocks, the query engine checks these statistics to decide whether the document can be skipped entirely.
Fields§
§max_heading_depth: u8Maximum heading depth (1–6) found in the document.
heading_slugs: HashSet<String>Set of heading slugs (lowercased, hyphenated) present in the document. Used to skip documents that don’t contain a requested heading.
heading_contents: HashSet<String>Set of heading content strings (plain text) for exact-match skipping.
code_languages: HashSet<String>Set of code-block language tags present (e.g. "rust", "python").
frontmatter_keys: HashSet<String>Set of top-level front-matter keys.
title: Option<String>Document title – from front-matter title field or first H1.
Tags list from front-matter tags array.
Implementations§
Trait Implementations§
impl StructuralPartialEq for ZoneMaps
Auto Trait Implementations§
impl Freeze for ZoneMaps
impl RefUnwindSafe for ZoneMaps
impl Send for ZoneMaps
impl Sync for ZoneMaps
impl Unpin for ZoneMaps
impl UnsafeUnpin for ZoneMaps
impl UnwindSafe for ZoneMaps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more