pub struct StatefulList<T> {
pub state: ListState,
pub items: Vec<T>,
}Fields§
§state: ListState§items: Vec<T>Implementations§
Source§impl<T> StatefulList<T>
impl<T> StatefulList<T>
pub fn with_items(items: Vec<T>) -> StatefulList<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for StatefulList<T>
impl<T> RefUnwindSafe for StatefulList<T>where
T: RefUnwindSafe,
impl<T> Send for StatefulList<T>where
T: Send,
impl<T> Sync for StatefulList<T>where
T: Sync,
impl<T> Unpin for StatefulList<T>where
T: Unpin,
impl<T> UnwindSafe for StatefulList<T>where
T: 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