pub struct VirtualListOptions {
pub axis: Axis,
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 known_row_height_at: Option<Arc<dyn Fn(usize) -> Px + Send + Sync>>,
}Fields§
§axis: Axis§items_revision: u64§estimate_row_height: Px§measure_mode: VirtualListMeasureMode§key_cache: VirtualListKeyCacheMode§overscan: usize§keep_alive: usize§scroll_margin: Px§gap: Px§known_row_height_at: Option<Arc<dyn Fn(usize) -> Px + Send + Sync>>Implementations§
Source§impl VirtualListOptions
impl VirtualListOptions
pub fn new(estimate_row_height: Px, overscan: usize) -> Self
pub fn keep_alive(self, keep_alive: usize) -> Self
pub fn fixed(estimate_row_height: Px, overscan: usize) -> Self
pub fn known( estimate_row_height: Px, overscan: usize, height_at: impl Fn(usize) -> Px + Send + Sync + 'static, ) -> Self
Trait Implementations§
Source§impl Clone for VirtualListOptions
impl Clone for VirtualListOptions
Source§fn clone(&self) -> VirtualListOptions
fn clone(&self) -> VirtualListOptions
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 VirtualListOptions
impl !RefUnwindSafe for VirtualListOptions
impl Send for VirtualListOptions
impl Sync for VirtualListOptions
impl Unpin for VirtualListOptions
impl UnsafeUnpin for VirtualListOptions
impl !UnwindSafe for VirtualListOptions
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