pub struct VirtualListProps {Show 13 fields
pub layout: LayoutStyle,
pub axis: Axis,
pub len: usize,
pub items_revision: u64,
pub estimate_row_height: Px,
pub measure_mode: VirtualListMeasureMode,
pub key_cache: VirtualListKeyCacheMode,
pub overscan: usize,
pub keep_alive: usize,
pub scroll_margin: Px,
pub gap: Px,
pub scroll_handle: VirtualListScrollHandle,
pub visible_items: Vec<VirtualItem>,
}Fields§
§layout: LayoutStyle§axis: Axis§len: usize§items_revision: u64§estimate_row_height: Px§measure_mode: VirtualListMeasureMode§key_cache: VirtualListKeyCacheMode§overscan: usize§keep_alive: usizeNumber of off-window items that a retained virtual-list host may keep alive for reuse.
This is primarily consumed by retained/windowed host implementations (ADR 0177) so window shifts can reuse previously-mounted item subtrees without forcing the parent cache root to rerender.
scroll_margin: Px§gap: Px§scroll_handle: VirtualListScrollHandle§visible_items: Vec<VirtualItem>Trait Implementations§
Source§impl Clone for VirtualListProps
impl Clone for VirtualListProps
Source§fn clone(&self) -> VirtualListProps
fn clone(&self) -> VirtualListProps
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 VirtualListProps
impl !RefUnwindSafe for VirtualListProps
impl !Send for VirtualListProps
impl !Sync for VirtualListProps
impl Unpin for VirtualListProps
impl UnsafeUnpin for VirtualListProps
impl !UnwindSafe for VirtualListProps
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