Trait cursive_table_view::TableViewItem
source ·
[−]pub trait TableViewItem<H>: Clone + Sized where
H: Eq + Hash + Copy + Clone + 'static, {
fn to_column(&self, column: H) -> String;
fn cmp(&self, other: &Self, column: H) -> Ordering
where
Self: Sized;
}
Expand description
A trait for displaying and sorting items inside a
TableView
.
Required methods
Method returning a string representation of the item for the
specified column from type H
.