Module cursive::utils [] [src]

Toolbox to make text layout easier.

Structs

LinesIterator

Generates rows of text in constrained width.

ProgressReader

Wrapper around a Read that reports the progress made.

Row

Represents a row of text within a String.

Span

The length and width of a part of a string.

Functions

prefix

Computes a prefix that fits in the given width.

simple_prefix

Computes the longest prefix that fits in the given width.

simple_suffix

Computes the longest suffix that fits in the given width.

suffix

Computes the longest suffix that fits in the given width.