pub struct VirtualList<'a, Msg = Callback> {
pub count: usize,
pub item_extent: f32,
pub axis: Axis,
pub build: &'a dyn Fn(usize) -> Box<dyn Widget<Msg>>,
}Expand description
The description of a virtualised list, exposed to the render driver.
Fields§
§count: usizeTotal number of items.
item_extent: f32The (logical) extent of one item along the axis the list scrolls: its height down a vertical list, its width across a horizontal one.
axis: AxisWhich way the list runs.
build: &'a dyn Fn(usize) -> Box<dyn Widget<Msg>>Builds one item per index.
Auto Trait Implementations§
impl<'a, Msg = Callback> !RefUnwindSafe for VirtualList<'a, Msg>
impl<'a, Msg = Callback> !Send for VirtualList<'a, Msg>
impl<'a, Msg = Callback> !Sync for VirtualList<'a, Msg>
impl<'a, Msg = Callback> !UnwindSafe for VirtualList<'a, Msg>
impl<'a, Msg> Freeze for VirtualList<'a, Msg>
impl<'a, Msg> Unpin for VirtualList<'a, Msg>
impl<'a, Msg> UnsafeUnpin for VirtualList<'a, Msg>
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