pub struct UseVirtualListHandle<T> {
pub visible_items: Vec<VirtualListItem<T>>,
pub total_height: f64,
pub start_index: usize,
pub end_index: usize,
pub scroll_to: Rc<dyn Fn(usize)>,
}Expand description
State handle for the use_virtual_list hook.
Fields§
§visible_items: Vec<VirtualListItem<T>>The visible items
total_height: f64The total height of all items
start_index: usizeThe start index of visible items
end_index: usizeThe end index of visible items
scroll_to: Rc<dyn Fn(usize)>Function to scroll to a specific index
Trait Implementations§
Source§impl<T> Clone for UseVirtualListHandle<T>where
T: Clone,
impl<T> Clone for UseVirtualListHandle<T>where
T: Clone,
Source§impl<T> PartialEq for UseVirtualListHandle<T>where
T: PartialEq,
impl<T> PartialEq for UseVirtualListHandle<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Freeze for UseVirtualListHandle<T>
impl<T> !RefUnwindSafe for UseVirtualListHandle<T>
impl<T> !Send for UseVirtualListHandle<T>
impl<T> !Sync for UseVirtualListHandle<T>
impl<T> Unpin for UseVirtualListHandle<T>where
T: Unpin,
impl<T> !UnwindSafe for UseVirtualListHandle<T>
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> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.