Module table

Module table 

Source
Expand description

Print column-aligned text to the console.

Example:

use radicle_term::table::*;

let mut t = Table::new(TableOptions::default());
t.push(["pest", "biological control"]);
t.push(["aphid", "lacewing"]);
t.push(["spider mite", "ladybug"]);
t.print();

Output:

pest        biological control
aphid       ladybug
spider mite persimilis

Structs§

Table
TableOptions

Traits§

Element
A text element that has a size and can be rendered to the terminal.