pub struct CollectionWindow {
pub loaded_range: Range<usize>,
pub total_count: Option<usize>,
pub has_before: bool,
pub has_after: bool,
}Expand description
Describes the loaded slice of a potentially larger collection.
Indices are zero-based and loaded_range is expressed in dataset space,
not in the source’s local keys() vector. A complete in-memory collection
therefore uses 0..len. Windowed sources can report, for example,
400..800 with a larger total_count while exposing 400 loaded keys.
Fields§
§loaded_range: Range<usize>§total_count: Option<usize>§has_before: bool§has_after: boolImplementations§
Trait Implementations§
Source§impl Clone for CollectionWindow
impl Clone for CollectionWindow
Source§impl Debug for CollectionWindow
impl Debug for CollectionWindow
Source§impl Default for CollectionWindow
impl Default for CollectionWindow
impl Eq for CollectionWindow
Source§impl PartialEq for CollectionWindow
impl PartialEq for CollectionWindow
impl StructuralPartialEq for CollectionWindow
Auto Trait Implementations§
impl Forget for CollectionWindow
impl Freeze for CollectionWindow
impl Move for CollectionWindow
impl RefUnwindSafe for CollectionWindow
impl Send for CollectionWindow
impl Sync for CollectionWindow
impl Unpin for CollectionWindow
impl UnsafeUnpin for CollectionWindow
impl UnwindSafe for CollectionWindow
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