Struct tabled::Table [−][src]
pub struct Table { /* fields omitted */ }
Expand description
Table structure provides an interface for building a table for types that implements Tabled
.
Example
Basic usage
use tabled::Table; let data: Vec<&'static str> = Vec::new(); let table = Table::new(data); println!("{}", table);
A list of settings
It may take a list of arguments such as Style
,
Alignment
, ChangeRing
use tabled::{Table, Style, Alignment, Full, Modify}; let data = vec!["Hello", "2021"]; let table = Table::new(&data) .with(Style::psql()) .with(Modify::new(Full).with(Alignment::left())); println!("{}", table);
Implementations
New creates a Table instance.
With is a generic function which applies options to the table.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Table
impl UnwindSafe for Table