pub enum InitialOffset {
Value(u64),
Provider(Arc<dyn Fn() -> u64 + Send + Sync>),
}Expand description
Initial scroll offset configuration.
Variants§
Value(u64)
A fixed initial offset.
Provider(Arc<dyn Fn() -> u64 + Send + Sync>)
A lazily evaluated initial offset provider (called by Virtualizer::new).
Trait Implementations§
Source§impl Clone for InitialOffset
impl Clone for InitialOffset
Source§fn clone(&self) -> InitialOffset
fn clone(&self) -> InitialOffset
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 InitialOffset
impl Debug for InitialOffset
Auto Trait Implementations§
impl Freeze for InitialOffset
impl !RefUnwindSafe for InitialOffset
impl Send for InitialOffset
impl Sync for InitialOffset
impl Unpin for InitialOffset
impl !UnwindSafe for InitialOffset
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