Expand description
Text handling logic related to individual lines of text.
This module is the core of multi-line text handling.
Structs
- Information about a single line of text within a
&str. - An iterator yielding an
Infostruct for each line in the giventextwrapped by the givennext_break_fn. - The type yielded by functions dedicated to finding the next line break.
- An iterator yielding a
Rectfor each line in - An iterator yielding a
Rectfor each selected line in a block of text.
Enums
- The two types of Break indices returned by the WrapIndicesBy iterators.
Functions
- Produce an
Infositerator that yields anInfofor every line in the given text. - Simplify the retrieval of line information for text that may or may not be wrapped.
- Produce an
Infositerator wrapped by the givennext_break_fn. - Produce an iterator yielding the bounding
Rectfor each line in the text. - Produces an iterator yielding a
Rectfor the selected range in each selected line in a block of text. - Produce the width of the given line of text including spaces (i.e. ’ ’).
Type Aliases
- An alias for function pointers that are compatible with the
Block’s required text wrapping function.