1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! Filepath: src/tree/range/mod.rs
//!
//! Range scan module for [`crate::MassTree`].
//!
//! This module implements ordered range iteration over the tree.
//!
//! # Module Organization
//!
//! - `cursor_key`: Mutable key buffer for scan position tracking
//! - `scan_state`: State machine types ([`ScanState`], [`ScanStackElement`], etc.)
//! - `helper`: Forward scan helper and lower bound search
//! - `find`: Core algorithm (`find_initial`, `find_next`, `find_retry`)
//! - `iterator`: [`RangeIter`] and [`ScanEntry`] types
//! - `api`: Public API methods on [`crate::MassTreeGeneric`]
//!
//! # Public API
//!
//! The main public types are:
//! - [`RangeBound`]: Start/end bound specification
//! - [`ScanEntry`]: Key-value entry returned by iterator
//! - [`RangeIter`]: Iterator over a key range
//!
//! # Example
//!
//! ```ignore
//! use masstree::{MassTree, RangeBound};
//!
//! let tree = MassTree::<String>::new();
//! // ... insert entries ...
//!
//! let guard = tree.guard();
//! for entry in tree.range(
//! RangeBound::Included(b"start"),
//! RangeBound::Excluded(b"end"),
//! &guard
//! ) {
//! println!("{:?} -> {}", entry.key, entry.value);
//! }
//!
// Re-export public types
pub use ;