pub struct VisibleRange {
pub start_index: usize,
pub end_index: usize,
pub overscan: usize,
pub count: usize,
}Expand description
Describes the visible range of items in a virtualized list.
Contains the start and end indices of the visible viewport along with the overscan and total count used to compute the rendered index set. This type is passed to custom range extractors.
Fields§
§start_index: usizeThe first visible item index (inclusive).
end_index: usizeThe last visible item index (inclusive).
overscan: usizeThe number of extra items beyond the viewport.
count: usizeThe total number of items in the dataset.
Trait Implementations§
Source§impl Clone for VisibleRange
impl Clone for VisibleRange
Source§fn clone(&self) -> VisibleRange
fn clone(&self) -> VisibleRange
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 VisibleRange
impl Debug for VisibleRange
Source§impl PartialEq for VisibleRange
impl PartialEq for VisibleRange
impl Copy for VisibleRange
impl Eq for VisibleRange
impl StructuralPartialEq for VisibleRange
Auto Trait Implementations§
impl Freeze for VisibleRange
impl RefUnwindSafe for VisibleRange
impl Send for VisibleRange
impl Sync for VisibleRange
impl Unpin for VisibleRange
impl UnsafeUnpin for VisibleRange
impl UnwindSafe for VisibleRange
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