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.
Audit
Dependencies
No dependency data recorded yet.