pub enum ListHeightMode {
Fixed(u16),
Variable,
}Expand description
How a VirtualizedList sizes its rows.
Variants§
Fixed(u16)
Every row is this many terminal rows tall (default: 1).
Variable
Each row is as tall as RenderItem::height reports. Rows are
measured into the state’s Fenwick tracker as they render, so scroll
offsets and the scrollbar stay O(log n) in the item count. Scrolling
is item-aligned: the first visible row starts at the viewport top.
Trait Implementations§
Source§impl Clone for ListHeightMode
impl Clone for ListHeightMode
Source§fn clone(&self) -> ListHeightMode
fn clone(&self) -> ListHeightMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ListHeightMode
Source§impl Debug for ListHeightMode
impl Debug for ListHeightMode
impl Eq for ListHeightMode
Source§impl PartialEq for ListHeightMode
impl PartialEq for ListHeightMode
impl StructuralPartialEq for ListHeightMode
Auto Trait Implementations§
impl Freeze for ListHeightMode
impl RefUnwindSafe for ListHeightMode
impl Send for ListHeightMode
impl Sync for ListHeightMode
impl Unpin for ListHeightMode
impl UnsafeUnpin for ListHeightMode
impl UnwindSafe for ListHeightMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.