Module rustfmt_nightly::string[][src]

Structs

Describes the layout of a piece of text.

Enums

Result of breaking a string so it fits in a line and the state it ended in. The state informs about what to do with the snippet and how to continue the breaking process.

Constants

Functions

Break the input string at a boundary character around the offset max_width. A boundary character is either a punctuation or a whitespace. FIXME(issue#3281): We must follow UAX#14 algorithm instead of this.

Returns the index to the end of the URL if the split at index of the given string includes a URL or alike. Otherwise, returns None.

Trims whitespaces to the right except for the line feed character.