Derive macros for the gilt terminal formatting library.
This crate provides the #[derive(Table)] macro that generates a
to_table() method for structs, converting struct fields into table columns.
Example
use gilt::Table;
#[derive(Table)]
struct Employee {
name: String,
age: u32,
department: String,
}
let employees = vec![
Employee { name: "Alice".into(), age: 30, department: "Engineering".into() },
Employee { name: "Bob".into(), age: 25, department: "Marketing".into() },
];
let table = Employee::to_table(&employees);