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)
Items have variable height, cached lazily (linear scan).
VariableFenwick(VariableHeightsFenwick)
Items have variable height with O(log n) scroll-to-index via Fenwick tree.
Trait Implementations§
Source§impl Clone for ItemHeight
impl Clone for ItemHeight
Source§fn clone(&self) -> ItemHeight
fn clone(&self) -> ItemHeight
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 moreAuto Trait Implementations§
impl Freeze for ItemHeight
impl RefUnwindSafe for ItemHeight
impl Send for ItemHeight
impl Sync for ItemHeight
impl Unpin 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