tabprinter 0.2.2

tabprinter is a Rust library for creating and printing formatted tables in the terminal. It supports various table styles and offers both color and non-color output options.
Documentation
use tabprinter::{Alignment, Table, TableStyle, Cell};

fn main() {
    let styles = [
        TableStyle::Simple,
        TableStyle::Grid,
        TableStyle::FancyGrid,
        TableStyle::Clean,
        TableStyle::Round,
        TableStyle::Banner,
        TableStyle::Block,
        TableStyle::Amiga,
        TableStyle::Minimal,
        TableStyle::Compact,
        TableStyle::Markdown,
        TableStyle::Dotted,
        TableStyle::Heavy,
        TableStyle::Neon,
    ];
    for style in styles.iter() {
        println!("{:?} style:", style);
        let mut table = Table::new(*style);

        // Add columns to the table
        table.add_column("Name", Alignment::Left);
        table.add_column("Age",Alignment::Right);
        table.add_column("City", Alignment::Center);

        // Add rows to the table
        table.add_row(vec![
            Cell::new("Alice"),
            Cell::new("30"),
            Cell::new("New York"),
        ]);
        table.add_row(vec![
            Cell::new("Bob"),
            Cell::new("25"),
            Cell::new("Los Angeles"),
        ]);

        // Print the table
        table.print().unwrap();
        println!("\n");
    }
}