Module rustfmt_nightly::string
source ยท Structsยง
- StringFormat ๐Describes the layout of a piece of text.
Enumsยง
- SnippetState ๐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ยง
- MIN_STRING ๐
Functionsยง
- break_string ๐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. - detect_url ๐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. - graphemes_width ๐
- is_new_line ๐
- is_part_of_type ๐
- is_punctuation ๐
- is_valid_linebreak ๐
- is_whitespace ๐
- rewrite_string ๐
- Trims whitespaces to the right except for the line feed character.