//! This is the simplest example, showing how to print //! basic tuple types. use kitty_table::TableFormatter; pub fn main() { // Create a table using the default formatter for (&str, i32, bool), the // type we are supplying into it. let table = TableFormatter::from_style(); // Put the data we want to print into a collection. let data = [ ("Hello, world!", 2, true), ("hello", 0, true), ("meow", 123, false), ]; // Call debug_print to write the output to console— use // "let _ = ..." to ignore the output. let _ = table.debug_print(data); } /* Expected result: ┏━━━━━━━━━━━━━━━━━┯━━━━━┯━━━━━━━┓ ┃ "Hello, world!" │ 2 │ true ┃ ┠─────────────────┼─────┼───────┨ ┃ "hello" │ 0 │ true ┃ ┠─────────────────┼─────┼───────┨ ┃ "meow" │ 123 │ false ┃ ┗━━━━━━━━━━━━━━━━━┷━━━━━┷━━━━━━━┛ */