pub struct LazyStatefulTable<T> {
pub state: TableState,
pub items: Vec<T>,
/* private fields */
}
Fields§
§state: TableState
§items: Vec<T>
Implementations§
Source§impl<T: Clone> LazyStatefulTable<T>
impl<T: Clone> LazyStatefulTable<T>
pub fn new(source: Box<dyn LazySource<T>>) -> LazyStatefulTable<T>
pub fn reload(&mut self)
pub fn get_selected_item(&self) -> Option<T>
pub fn clear(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for LazyStatefulTable<T>
impl<T> !RefUnwindSafe for LazyStatefulTable<T>
impl<T> !Send for LazyStatefulTable<T>
impl<T> !Sync for LazyStatefulTable<T>
impl<T> Unpin for LazyStatefulTable<T>where
T: Unpin,
impl<T> !UnwindSafe for LazyStatefulTable<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