Module cursive::utils [] [src]

Toolbox to make text layout easier.

Structs

LinesIterator

Generates rows of text in constrained width.

Prefix

The length and width of a part of a string.

ProgressReader

Wrapper around a Read that reports the progress made.

Row

Represents a row of text within a String.

Functions

prefix

Computes the length (number of bytes) and width of a prefix that fits in the given width.

simple_prefix

Computes the longest prefix of the given text that fits in the given width.

simple_suffix

Computes a suffix that fits in the given width.

suffix

Computes the length (number of bytes) and width of a suffix that fits in the given width.