struct FlatNode {
mins: [i64; 7],
maxs: [i64; 7],
value_index: u32,
children_start: u32,
children_count: u8,
}Expand description
Compact node for the flattened R-Tree.
Children of the same parent are stored at contiguous indices in a single
Vec<FlatNode>, enabling cache-efficient iteration during search.
The BFS-order layout also means that nodes accessed together during a
search tend to be near each other in memory.
Fields§
§mins: [i64; 7]Bounding box minimum values for each parameter dimension.
maxs: [i64; 7]Bounding box maximum values for each parameter dimension.
value_index: u32For leaf nodes: index into the values array.
For subtree nodes: u32::MAX (sentinel).
children_start: u32Start index of children in the nodes array (subtree only).
children_count: u8Number of children (0 = leaf, 1..=6 = subtree).
Implementations§
Auto Trait Implementations§
impl Freeze for FlatNode
impl RefUnwindSafe for FlatNode
impl Send for FlatNode
impl Sync for FlatNode
impl Unpin for FlatNode
impl UnsafeUnpin for FlatNode
impl UnwindSafe for FlatNode
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