pub struct PrefetchStrategy {
pub prefetch_count: usize,
pub enabled: bool,
}Expand description
Strategy for prefetching items in a lazy list.
Fields§
§prefetch_count: usizeNumber of items to prefetch beyond the visible area. Default is 2, matching JC’s default.
enabled: boolWhether prefetching is enabled.
Implementations§
Trait Implementations§
Source§impl Clone for PrefetchStrategy
impl Clone for PrefetchStrategy
Source§fn clone(&self) -> PrefetchStrategy
fn clone(&self) -> PrefetchStrategy
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 moreSource§impl Debug for PrefetchStrategy
impl Debug for PrefetchStrategy
Auto Trait Implementations§
impl Freeze for PrefetchStrategy
impl RefUnwindSafe for PrefetchStrategy
impl Send for PrefetchStrategy
impl Sync for PrefetchStrategy
impl Unpin for PrefetchStrategy
impl UnwindSafe for PrefetchStrategy
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