| Crates.io | columns |
| lib.rs | columns |
| version | 0.1.0 |
| created_at | 2022-05-04 05:07:28.989839+00 |
| updated_at | 2022-05-04 05:07:28.989839+00 |
| description | A text manipulation library for displaying separate text in columns. |
| homepage | https://crates.io/crates/Columns |
| repository | https://github.com/S0raWasTaken/Columns |
| max_upload_size | |
| id | 580200 |
| size | 8,158 |
A text manipulation library for displaying separate text in columns
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