Struct tabled::MaxWidth [−][src]
pub struct MaxWidth<S> { /* fields omitted */ }
Expand description
Using MaxWidth you can set a max width of an object on a Grid.
Example
use tabled::{Full, MaxWidth, Modify, Style, Table};
let data = [
"123456789",
"qwertyuiop[]",
"[[[[[[[[[[[[[[[[[",
];
let table = Table::new(&data)
.with(Style::github_markdown())
.with(Modify::new(Full).with(MaxWidth::truncating(5, "...")));
While working with colors you must setup colors
feature.