prettytable-rs icon indicating copy to clipboard operation
prettytable-rs copied to clipboard

Question: Slice Usage With Row Macro

Open dfirence opened this issue 3 years ago • 0 comments

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?

dfirence avatar Jul 20 '20 03:07 dfirence