pub struct VisibleRange {
pub start: usize,
pub end: usize,
pub top_spacer: f32,
pub bottom_spacer: f32,
}Expand description
The slice of items to actually render, plus spacer heights to preserve the illusion of the full list being present for scrollbar purposes.
Fields§
§start: usizeFirst visible item index (inclusive).
end: usizeLast visible item index (exclusive).
top_spacer: f32Pixel height of a spacer to place before the rendered slice.
bottom_spacer: f32Pixel height of a spacer to place after the rendered slice.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VisibleRange
Source§impl Debug for VisibleRange
impl Debug for VisibleRange
Source§impl PartialEq for VisibleRange
impl PartialEq 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