pub enum VirtualizedStorage<T> {
Owned(VecDeque<T>),
External {
len: usize,
cache_capacity: usize,
},
}Expand description
Storage strategy for virtualized items.
Variants§
Owned(VecDeque<T>)
Owned vector of items.
External
External storage with known length. Note: External fetch is handled at the widget level.
Trait Implementations§
Source§impl<T: Clone> Clone for VirtualizedStorage<T>
impl<T: Clone> Clone for VirtualizedStorage<T>
Source§fn clone(&self) -> VirtualizedStorage<T>
fn clone(&self) -> VirtualizedStorage<T>
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<T> Freeze for VirtualizedStorage<T>
impl<T> RefUnwindSafe for VirtualizedStorage<T>where
T: RefUnwindSafe,
impl<T> Send for VirtualizedStorage<T>where
T: Send,
impl<T> Sync for VirtualizedStorage<T>where
T: Sync,
impl<T> Unpin for VirtualizedStorage<T>where
T: Unpin,
impl<T> UnwindSafe for VirtualizedStorage<T>where
T: UnwindSafe,
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