pub trait TableIteratorExt {
type Records;
// Required method
fn table(self) -> Table<Self::Records>;
}
Expand description
A trait for IntoIterator
whose Item type is bound to Tabled
.
Any type implements IntoIterator
can call this function directly
use tabled::{TableIteratorExt, Style};
let strings: &[&str] = &["Hello", "World"];
let mut table = strings.table();
table.with(Style::psql());
println!("{}", table);