Crate columns

Source
Expand description

A text manipulation library for displaying separate text in columns.

§Quick Start

The quickest way to get column-separated text is to use the From implementation for Columns.

use columns::Columns;

let column_text = Columns::from(
   vec![
       vec!["text", "should", "be"],
       vec!["in", "different", "columns"],
       vec!["even", "in", "more", "than", "two"]
   ]
);

println!("{}", column_text);

If you’re using &format!s, you may want to use make_columns method from columns::Columns.

Structs§

Columns
Main crate structure, here goes all the logic.