pub struct VisibleSet<V> {
pub items: Vec<V>,
pub intersection: Option<Intersection>,
pub has_more_preceding: bool,
pub has_more_following: bool,
pub should_auto_scroll: bool,
pub error: Option<String>,
}Expand description
The visible set of items exposed to the renderer
Fields§
§items: Vec<V>Items in display_order (first item at index 0)
intersection: Option<Intersection>Anchor item for scroll stability when items change
has_more_preceding: boolTrue if there are items preceding the current window (earlier in display_order)
has_more_following: boolTrue if there are items following the current window (later in display_order)
should_auto_scroll: boolTrue if renderer should auto-scroll to end when items change
error: Option<String>Error if intersection calculation failed (continuation item not found in result)
Trait Implementations§
Source§impl<V: Clone> Clone for VisibleSet<V>
impl<V: Clone> Clone for VisibleSet<V>
Source§fn clone(&self) -> VisibleSet<V>
fn clone(&self) -> VisibleSet<V>
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<V: Debug> Debug for VisibleSet<V>
impl<V: Debug> Debug for VisibleSet<V>
Auto Trait Implementations§
impl<V> Freeze for VisibleSet<V>
impl<V> RefUnwindSafe for VisibleSet<V>where
V: RefUnwindSafe,
impl<V> Send for VisibleSet<V>where
V: Send,
impl<V> Sync for VisibleSet<V>where
V: Sync,
impl<V> Unpin for VisibleSet<V>where
V: Unpin,
impl<V> UnwindSafe for VisibleSet<V>where
V: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.