docs.rs failed to build tabwriter-0.1.13
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
tabwriter-1.4.0
tabwriter is a crate that implements
elastic tabstops. It
provides both a library for wrapping Rust Writer
s and a small program that
exposes the same functionality at the command line.
Licensed under the UNLICENSE.
Simple example of library
use MemWriter;
use TabWriter;
let mut tw = new;
tw.write_str.unwrap;
tw.flush.unwrap;
let written = String from_utf8.unwrap;
assert_eq!;
You can see an example of real use in my CSV toolkit.
Simple example of command line utility
|
Notice that once a column block is broken, alignment starts over again.
Documentation
The API is fully documented with some examples: http://burntsushi.net/rustdoc/tabwriter/.
Installation
This crate works with Cargo. Assuming you have Rust and Cargo installed, simply check out the source and run tests:
You can also add tabwriter
as a dependency to your project's Cargo.toml
:
[]
= "git://github.com/BurntSushi/tabwriter"