Expand description
This module contains a Shadow
option for a Table
.
§Example
use tabled::{Style, TableIteratorExt, shadow::Shadow};
let data = vec!["Hello", "World", "!"];
let table = data.table()
.with(Style::markdown())
.with(Shadow::new(1))
.to_string();
assert_eq!(
table,
concat!(
"| &str | \n",
"|-------|▒\n",
"| Hello |▒\n",
"| World |▒\n",
"| ! |▒\n",
" ▒▒▒▒▒▒▒▒▒",
)
);
Structs§
- The structure represents a shadow of a table.