pub struct NearestRangeState { /* private fields */ }Expand description
Tracks a range of indices near the first visible item for optimized key lookup.
Instead of searching all items (O(n)), we only search within this range. The range is calculated using a sliding window that only updates when the first visible item crosses a window boundary.
Matches JC’s LazyLayoutNearestRangeState.
Implementations§
Source§impl NearestRangeState
impl NearestRangeState
Trait Implementations§
Source§impl Clone for NearestRangeState
impl Clone for NearestRangeState
Source§fn clone(&self) -> NearestRangeState
fn clone(&self) -> NearestRangeState
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 NearestRangeState
impl Debug for NearestRangeState
Auto Trait Implementations§
impl Freeze for NearestRangeState
impl RefUnwindSafe for NearestRangeState
impl Send for NearestRangeState
impl Sync for NearestRangeState
impl Unpin for NearestRangeState
impl UnwindSafe for NearestRangeState
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