prettytable-rs
prettytable-rs copied to clipboard
Question: Slice Usage With Row Macro
Hi and thanks for this useful lib.
I want to write a function that creates a table dynamically by passing 2 params to the function
pub fn make_table(cols: &[&str], rows: &[&str]) {
... Code here ...
}
Does the row macro allow for this?