columns 0.1.0

A text manipulation library for displaying separate text in columns.
Documentation
  • Coverage
  • 100%
    5 out of 5 items documented2 out of 5 items with examples
  • Size
  • Source code size: 7.81 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 950.86 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • S0raWasTaken/Columns
    8 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • S0raWasTaken

Columns

A text manipulation library for displaying separate text in columns

Example

use columns::Columns;

println!(
    "{}",
    Columns::from(vec![
        vec!["line1", "line2", "line3"],
        vec!["should", "be", "displayed", "side by side"],
    ])
    .base_tabsize_in(0) // Sets the tabsize to be based in the first one. This is to prevent unnecessary spacing
);

Result:

line1   should
line2   be
line3   displayed
        side by side

TODO list

  • Post on crates.io
  • Customizable separators