Registry / utility / tabwriter

tabwriter

JSON →
library1.4.1rscratesunverified

Elastic tabstops for aligning text in columns.

# Cargo.toml [dependencies] tabwriter = "1.4.1"
INSTALL
IMPORT
SIG · TABWRITER
T
tabwriter
utilityrustv1.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TabWriter
use tabwriter::TabWriter;

Writes tab-separated data and aligns columns.

use tabwriter::TabWriter; use std::io::Write; fn main() { let mut tw = TabWriter::new(vec![]); writeln!(tw, "Name\tAge").unwrap(); writeln!(tw, "Alice\t30").unwrap(); writeln!(tw, "Bob\t25").unwrap(); tw.flush().unwrap(); let result = String::from_utf8(tw.into_inner().unwrap()).unwrap(); println!("{}", result); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.4.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
tabwriter — cargo add tabwriter · libregistry