pub enum ItemHeight {
Fixed(u16),
Variable(HeightCache),
VariableFenwick(VariableHeightsFenwick),
}Expand description
Height calculation strategy for items.
Variants§
Fixed(u16)
All items have fixed height.
Variable(HeightCache)
Legacy variable-height mode: an LRU cache of measured heights and a
linear scan per visible_range. Kept for callers that want bounded
memory over a sliding window; new code should use
Virtualized::with_variable_heights (Fenwick).
VariableFenwick(VariableHeightsFenwick)
Items have variable height with O(log n) scroll-to-index via Fenwick tree; the default variable-height strategy.
Trait Implementations§
Source§impl Clone for ItemHeight
impl Clone for ItemHeight
Auto Trait Implementations§
impl Freeze for ItemHeight
impl RefUnwindSafe for ItemHeight
impl Send for ItemHeight
impl Sync for ItemHeight
impl Unpin for ItemHeight
impl UnsafeUnpin for ItemHeight
impl UnwindSafe for ItemHeight
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