pub struct TableWidget {
pub headers: Vec<String>,
pub rows: Vec<Vec<String>>,
pub highlight_row: Option<usize>,
pub column_widths: Vec<usize>,
}Expand description
Table widget
Fields§
§headers: Vec<String>Column headers
rows: Vec<Vec<String>>Row data
highlight_row: Option<usize>Currently highlighted row
column_widths: Vec<usize>Column widths (auto-calculated if empty)
Implementations§
Trait Implementations§
Source§impl Clone for TableWidget
impl Clone for TableWidget
Source§fn clone(&self) -> TableWidget
fn clone(&self) -> TableWidget
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 moreAuto Trait Implementations§
impl Freeze for TableWidget
impl RefUnwindSafe for TableWidget
impl Send for TableWidget
impl Sync for TableWidget
impl Unpin for TableWidget
impl UnsafeUnpin for TableWidget
impl UnwindSafe for TableWidget
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