zhiburt / tabled

An easy to use library for pretty print tables of Rust structs and enums.
MIT License
1.93k stars 77 forks source link

List of refactorings to do. #333

Open zhiburt opened 1 year ago

zhiburt commented 1 year ago
zhiburt commented 1 year ago
zhiburt commented 1 year ago

Row(vec![Column, Column, Cell])

╭───────────────────────┬──────┬─────╮
│ name                  │ type │ ... │
├───────────────────────┼──────┤     │
│ CODE_OF_CONDUCT.md    │ file │     │
├───────────────────────┼──────┤     │
│ CONTRIBUTING.md       │ file │     │
├───────────────────────┼──────┤     │
│ Cargo.lock            │ file │     │
├───────────────────────┼──────┤     │
│ Cargo.toml            │ file │     │
├───────────────────────┼──────│     │
│ Cross.toml            │ file │     │
├───────────────────────┼──────│     │
│ LICENSE               │ file │     │
├───────────────────────┼──────│     │
│ README.md             │ file │     │
├───────────────────────┼──────│     │
│ README.release.txt    │ file │     │
├───────────────────────┼──────│     │
│ assets                │ dir  │     │
├───────────────────────┼──────│     │
│ benches               │ dir  │     │
├───────────────────────┼──────│     │
│ wix                   │ dir  │     │
╰───────────────────────┴──────┴─────╯
zhiburt commented 1 year ago
    fn has_top_border(border: Border<char>) -> bool {
        border.top.is_some() || border.left_top_corner.is_some() || border.right_top_corner.is_some()
    }