leptos_windowing/
window.rs

1use std::ops::Range;
2
3use leptos::prelude::*;
4use reactive_stores::Store;
5
6use crate::cache::Cache;
7
8/// This is bascially a signal of a slice of the internal cache.
9///
10/// This is returned by [`use_pagination`] and [`use_virtualization`](http://TO.DO).
11#[derive(Copy, Clone)]
12pub struct ItemWindow<T>
13where
14    T: Send + Sync + 'static,
15{
16    pub cache: Store<Cache<T>>,
17    pub range: Signal<Range<usize>>,
18}