tabled 0.20.0

An easy to use library for pretty print tables of Rust `struct`s and `enum`s.
Documentation
use tabled::{
    settings::{style::Style, themes::ColumnNames, Alignment, Color},
    Table, Tabled,
};

#[derive(Debug, Tabled)]
struct Function {
    declaration: String,
    name: String,
    return_type: String,
}

impl Function {
    fn new(decl: &str, name: &str, ret_type: &str) -> Self {
        Self {
            declaration: decl.to_string(),
            name: name.to_string(),
            return_type: ret_type.to_string(),
        }
    }
}

fn main() {
    #[rustfmt::skip]
    let data = vec![
        Function::new("struct stack *stack_create(int)", "stack_create", "struct stack *"),
        Function::new("void stack_destroy(struct stack *)", "stack_destroy", "void"),
        Function::new("int stack_put(struct stack *, vm_offset_t)", "stack_put", "int"),
        Function::new("void stack_copy(const struct stack *, struct stack *)", "stack_copy", "void"),
    ];

    let mut table = Table::new(data);

    table.with(Style::modern().remove_horizontal());
    table.with(
        ColumnNames::head()
            .color(Color::BG_BLUE | Color::FG_WHITE | Color::BOLD)
            .alignment(Alignment::center()),
    );

    println!("{table}");
}