Skip to content

A simple table trait object for Vec<Vec<impl fmt::Display>>

License

Notifications You must be signed in to change notification settings

rhgrieve/tabular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tabular

A simple table trait object for Vec<Vec<impl fmt::Display>>

use tabular::Tabular;

fn main() {
    let table_data = vec![
        vec!["Cat", "Dog", "Elephant"],
        vec!["Pidgeon", "Bear", "Wolf"]
    ];

    println!("{}", table_data.to_table());
}
> cargo run

Cat     Dog  Elephant
Pidgeon Bear Wolf  

About

A simple table trait object for Vec<Vec<impl fmt::Display>>

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages