pub struct Props<T>{
pub items: Rc<Vec<T>>,
pub row_height: f64,
pub class: Classes,
}Expand description
VirtualScroller properties
Fields§
§items: Rc<Vec<T>>Full list of items. This is within an Rc as the assumption is the list will be large and so cloning it would be expensive.
row_height: f64Height of each item in pixels.
class: ClassesClass(es) to apply to the root container
Trait Implementations§
Source§impl<T> Properties for Props<T>
impl<T> Properties for Props<T>
impl<T> StructuralPartialEq for Props<T>
Auto Trait Implementations§
impl<T> Freeze for Props<T>
impl<T> RefUnwindSafe for Props<T>where
T: RefUnwindSafe,
impl<T> !Send for Props<T>
impl<T> !Sync for Props<T>
impl<T> Unpin for Props<T>
impl<T> UnwindSafe for Props<T>where
T: RefUnwindSafe,
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