pub struct SpatialHitConfig {
pub cell_size: u16,
pub bucket_warn_threshold: usize,
pub track_cache_stats: bool,
}Expand description
Configuration for the spatial hit index.
Fields§
§cell_size: u16Grid cell size in terminal cells (default: 8). Smaller = more memory, faster queries. Larger = less memory, slower queries.
bucket_warn_threshold: usizeMaximum widgets per bucket before logging warning (default: 64).
track_cache_stats: boolEnable cache hit tracking for diagnostics (default: false).
Trait Implementations§
Source§impl Clone for SpatialHitConfig
impl Clone for SpatialHitConfig
Source§fn clone(&self) -> SpatialHitConfig
fn clone(&self) -> SpatialHitConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpatialHitConfig
impl Debug for SpatialHitConfig
Auto Trait Implementations§
impl Freeze for SpatialHitConfig
impl RefUnwindSafe for SpatialHitConfig
impl Send for SpatialHitConfig
impl Sync for SpatialHitConfig
impl Unpin for SpatialHitConfig
impl UnsafeUnpin for SpatialHitConfig
impl UnwindSafe for SpatialHitConfig
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