Module text

Source
Expand description

Text types and operations, text processing.
text::{fmt, parse, str}

Extends: std::{ascii, char, fmt, str, string}


Modules§

fmt
Strings formatting.
parse
String parsing without structured semantics.
str
String types and related functionality.

Structs§

Ascii
🌐 Provides ASCII operations on T, most of them const.
Char
🌐 Unicode scalars-related operations.
GraphemeNonul
An EGC backed by a StringNonul.
GraphemeStringalloc
An EGC backed by a String.
GraphemeU8
An EGC backed by an StringU8.
InvalidChar
🚩 An invalid given character was found.
InvalidUtf8
🚩 Invalid Utf-8 found while interpreting a byte sequence.
IterChars
🔄 core An iterator over the chars of a string slice.
char7_char7
A 7-bit unicode scalar, limited to basic latin subset (ASCII).
char8_char8
An 8-bit unicode scalar, limited to basic latin and latin-1 subsets.
char16_char16
A 16-bit unicode scalar, limited to the Basic Multilingual Plane subset.

Enums§

AsciiCharascii
One of 128 Unicode characters (U+0000 to U+007F), the ASCII subset.
InvalidText
🚩+ An error composite of InvalidChar + InvalidUtf8 + MismatchedCapacity.
TextErrorerror and text··
🚩+ A text-related composite error.

Traits§

Grapheme
Common trait for EGC types.
UnicodeScalar
Common trait for unicode scalar types.

Type Aliases§

TextResulterror and text··
⚖️ A text-related result.
char
⚙️ core A 32-bit unicode scalar.