Crate text_layout

Source

Structs§

FirstFit
Runs the first-fit line-breaking algorithm to calculate the break points for a paragraph.
Fixed
Wraps a signed fixed-point number. All operations are saturating so that the underlying representation’s minimum and maximum values are able to stand in for -∞ and +∞.
KnuthPlass
Runs the Knuth-Plass line-breaking algorithm to calculate the optimal break points for a paragraph.
Line
A single line of text as represented by its break point and adjustment ratio.

Enums§

Item
A single item in a paragraph.

Traits§

Num
A trait that describes the operations necessary for this crate’s layout algorithms.
ParagraphLayout
Represents a paragraph layout algorithm