pub struct VirtualViewportSnapshot<K> {
pub loaded_range: Range<usize>,
pub visible_range: Range<usize>,
pub visible_keys: Vec<K>,
pub total_count: Option<usize>,
pub has_before: bool,
pub has_after: bool,
pub anchor: Option<CollectionAnchor<K>>,
pub offset: f32,
pub max_offset: f32,
pub at_loaded_start: bool,
pub at_loaded_end: bool,
pub following_end: bool,
}Expand description
Observable projection of a virtual collection viewport.
loaded_range and visible_range use dataset-space indices. The key list
only contains items intersecting the viewport, making this snapshot
suitable for paging UI, diagnostics, and prefetch decisions without
exposing internal widget pods.
Fields§
§loaded_range: Range<usize>§visible_range: Range<usize>§visible_keys: Vec<K>§total_count: Option<usize>§has_before: bool§has_after: bool§anchor: Option<CollectionAnchor<K>>§offset: f32§max_offset: f32§at_loaded_start: bool§at_loaded_end: bool§following_end: boolTrait Implementations§
Source§impl<K> Clone for VirtualViewportSnapshot<K>where
K: Clone,
impl<K> Clone for VirtualViewportSnapshot<K>where
K: Clone,
Source§fn clone(&self) -> VirtualViewportSnapshot<K>
fn clone(&self) -> VirtualViewportSnapshot<K>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K> Debug for VirtualViewportSnapshot<K>where
K: Debug,
impl<K> Debug for VirtualViewportSnapshot<K>where
K: Debug,
Source§impl<K> Default for VirtualViewportSnapshot<K>
impl<K> Default for VirtualViewportSnapshot<K>
Source§fn default() -> VirtualViewportSnapshot<K>
fn default() -> VirtualViewportSnapshot<K>
Returns the “default value” for a type. Read more
Source§impl<K> PartialEq for VirtualViewportSnapshot<K>where
K: PartialEq,
impl<K> PartialEq for VirtualViewportSnapshot<K>where
K: PartialEq,
impl<K> StructuralPartialEq for VirtualViewportSnapshot<K>where
K: PartialEq,
Auto Trait Implementations§
impl<K> Forget for VirtualViewportSnapshot<K>
impl<K> Freeze for VirtualViewportSnapshot<K>
impl<K> Move for VirtualViewportSnapshot<K>
impl<K> RefUnwindSafe for VirtualViewportSnapshot<K>
impl<K> Send for VirtualViewportSnapshot<K>
impl<K> Sync for VirtualViewportSnapshot<K>
impl<K> Unpin for VirtualViewportSnapshot<K>
impl<K> UnsafeUnpin for VirtualViewportSnapshot<K>
impl<K> UnwindSafe for VirtualViewportSnapshot<K>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.