Trait cursive_table_view::TableViewItem[][src]

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
; }

A trait for displaying and sorting items inside a TableView.

Required methods

fn to_column(&self, column: H) -> String[src]

Method returning a string representation of the item for the specified column from type H.

fn cmp(&self, other: &Self, column: H) -> Ordering where
    Self: Sized
[src]

Method comparing two items via their specified column from type H.

Loading content...

Implementors

Loading content...