Column

Trait Column 

Source
pub trait Column<T> {
    // Required methods
    fn width(&self) -> u16;
    fn render(&self, item: &T) -> (String, Style);

    // Provided methods
    fn id(&self) -> &'static str { ... }
    fn default_name(&self) -> &'static str { ... }
    fn name(&self) -> &str { ... }
}

Required Methods§

Source

fn width(&self) -> u16

Source

fn render(&self, item: &T) -> (String, Style)

Provided Methods§

Source

fn id(&self) -> &'static str

Source

fn default_name(&self) -> &'static str

Source

fn name(&self) -> &str

Implementors§