Crate xpad [] [src]

pad handles padding and alignment within delimited strings

While its primary use case is as a command line tool, this library is provided in case a programmatic interface might be useful to someone.

Structs

Column

A Column is a basic unit of output

OutputConfig

This struct configures the output of a document

Enums

Alignment

Alignment controls the alignment of the output within a column

Functions

configure_output

Generate output configuration from the given document

parse_document

Parse an input string into a document

print

Print the given document to stdout using the given output configuration

split_row

Split an input row into its component graphemes

write

Write the given document to the specified writer using the given output configuration

Type Definitions

Cell

A Cell is a single field within a row

Document
Row

A Row is a list of Cells.