Expand description
Macros§
- format
alloc - 🖹 🏗️
allocCreates a String using interpolation of runtime expressions. - format_
args - 🖹
coreConstructs parameters for the other string-formatting macros. - format_
buf - 🖹
Returns a formatted
strslice backed by a buffer, non-allocating. - scalar_
offset - 🏗️ 𝐓 Defines a compact Unicode scalar type backed by an integer offset.
- write
- 🖹
coreWrites formatted data into a buffer. - writeln
- 🖹
coreWrites formatted data into a buffer, with a newline appended.
Structs§
- Ascii
- ⌗ 𝐓 🛠️ ASCII code-space constants, digit conversions, and lookup data.
- Ascii
Set - 𝐓 ⊆ A finite set of ASCII characters.
- Byte
Search - 𝐓 ::= 🛠️ A utility struct for searching bytes in slices.
- CStr
- 𝐓 🍃
coreRepresentation of a borrowed C string (SeeCString). - CString
alloc - 𝐓
allocAn owned, C-compatible, nul-terminated string with no nul bytes in the middle. - Char
- 𝐓 🛠️ Unicode scalars-related low-level const operations.
- Char
Iter - 𝐓 🔄 An iterator over Unicode scalars.
- Debug
List - 🖹 🐛
coreA struct to help withDebugimplementations. - Debug
Map - 🖹 🐛
coreA struct to help withDebugimplementations. - Debug
Set - 🖹 🐛
coreA struct to help withDebugimplementations. - Debug
Struct - 🖹 🐛
coreA struct to help withDebugimplementations. - Debug
Tuple - 🖹 🐛
coreA struct to help withDebugimplementations. - Debug
With - 🖹 🐛
A
Debugadapter for formatting a value with aDebugExtcontext. - Digits
- 𝐓 ⅀ 🛠️ Provides ASCII digit operations and conversions for unsigned integer primitives.
- Fmt
- 𝐓 🛠️ A string formatting namespace.
- FmtArguments
- 🖹
coreRepresents a safely precompiled version of a format string and its arguments. - FmtError
- 🖹 🚩
coreThe error type which is returned from formatting a message into a stream. - FmtFrom
Fn - 🖹
coreImplementsDebugandDisplayvia the provided closure. - FmtNum
- 🖹 ⅀ 🏚️ Const number formatter.
- FmtNum
Conf - 🖹 ⅀ Configuration for numeric formatting.
- FmtNum
Group - 🖹 ⅀ Numeric digit grouping configuration.
- FmtNum
Shape - 🖹 ⅀ Describes the structural shape of a formatted number.
- FmtWriter
- 🖹 A specialized formatter with a fixed byte buffer and truncation detection.
- Formatter
- 🖹
coreConfiguration for formatting. - From
Utf8 Error alloc - 𝐓 🚩
allocA possible error value when converting a String from a UTF-8 byte vector. - Grapheme
Iter grapheme - 𝐓 🔄 Owns grapheme segmentation state while scanning a string slice.
- Grapheme
Machine grapheme - 𝐓 Streaming EGC boundary detector. Streaming grapheme cluster boundary detector.
- Grapheme
NonNul grapheme - 𝐓
An EGC backed by a
StringNonNul. - Grapheme
Props grapheme - 𝐓 Combined EGC break properties for a single code point.
- Grapheme
Scanner grapheme - 𝐓 🔄 Borrows grapheme segmentation state while scanning a string slice.
- Grapheme
String allocandgrapheme - 𝐓
An EGC backed by a
String. - Grapheme
U8 grapheme - 𝐓
An EGC backed by a
StringU8. - OsStr
std - 𝐓 🍃 🖥️
stdBorrowed reference to an OS string (SeeOsString). - OsString
std - 𝐓 🖥️
stdA type for owned, mutable native strings, interconvertible with Rust strings. - Parse
Float Error - 𝐓 ::= ⅀ 🚩
coreAn error which can be returned when parsing an float. - Parse
IntError - 𝐓 ::= ⅀ 🚩
coreAn error which can be returned when parsing an integer. - Str
- 🧶 🛠️ A string slice namespace.
- StrBuf
- 🧶 A borrowed UTF-8 string buffer over caller-provided bytes.
- String
alloc - 𝐓
allocA UTF-8–encoded, growable string. - String
NonNul - 🧶
A null-terminated UTF-8 string with up to
u8::MAXbytes capacity. - String
Small Alloc alloc - 🧶 A UTF-8 string with inline storage and heap spillover.
- String
U8 - 🧶 A UTF-8 string with fixed capacity that stores length explicitly.
- Text
Cursor - 𝐓 Continuation point within a caller-defined text traversal.
- Text
Index - 𝐓 🧱 Position within a caller-defined text-oriented sequence.
- Text
Layout - 𝐓 🧱 🛠️ Text layout engine configuration.
- Text
Layout Span - 𝐓 🧱 📏 Mapping between a contiguous text range and its consumed inline space.
- Text
Layout Step - 𝐓 🧱 ⚖️ Result of a single text layout step.
- Text
Line - 𝐓 🧱 A wrapped visual text line.
- Text
Line Iter - 𝐓 🧱 🔄 Iterates fixed-width inline layout steps over a symbol stream.
- Text
Parse Error - 𝐓 ::= 🚩 A text parsing failure paired with its cursor location.
- Text
Range - 𝐓 📏 A half-open range within a caller-defined text-oriented sequence.
- Text
Scanner - 𝐓 ::= A byte-position scanner over source text.
- Text
Segment - 𝐓 🧱 A semantic text segment used for wrapping.
- Text
Symbol - 𝐓 🧱 🔌 Layout participation record for a single text symbol.
- Text
Symbol Config - 𝐓 🧱 Policy bundle for deriving layout symbols from text.
- Text
Wrap Iter - 𝐓 🧱 🔄 Iterates wrapped visual lines over text segments.
- Textel
- 𝐓 🧱 🗃️ A discrete textual element for cell-like lines, grids, or canvases.
- Translit
- 𝐓 🛠️ Lossy text transliteration utilities.
- char7
- 𝐓 A 7-bit Unicode scalar, limited to basic latin subset (ASCII).
- char8
- 𝐓 An 8-bit Unicode scalar, limited to basic latin and latin-1 subsets.
- char16
- 𝐓 A 16-bit Unicode scalar, limited to the Basic Multilingual Plane subset.
- charu
- 𝐓 A 32-bit Unicode scalar, with UTF-8 representation.
- charu_
niche - 𝐓 A 32-bit Unicode scalar, with UTF-8 representation, and niche-memory optimization.
Enums§
- Char
Ascii - 𝐓
One of 128 Unicode characters (
U+0000toU+007F), the ASCII subset. - FmtAlignment
- 🖹
corePossible alignments returned byFormatter::align. - FmtNum
Sign - 🖹 ⅀ Controls how the sign of a number is formatted.
- Grapheme
Boundary grapheme - 𝐓 Indicates how to handle a code point when detecting grapheme cluster boundaries.
- Grapheme
Kind grapheme - 𝐓 The kinds of supported graphemes.
- Grapheme
Prop Cb grapheme - 𝐓 EGC property values from Unicode Standard Annex #29.
- Grapheme
Prop InCb grapheme - 𝐓 Break property for Indic scripts that prevents splitting within orthographic syllables.
- Parse
IntError Kind - 𝐓 ::= ⅀ 🚩
coreKinds of errors that can cause parsing an integer to fail. - Text
Break Kind - 𝐓 🧱 Reason why a wrapped text line ended.
- Text
Break Mode - 𝐓 🧱 Boundary policy for deriving layout symbols from text.
- Text
Cohesion - 𝐓 🧱 Spatial cohesion rules for a text symbol during layout.
- Text
Elide Mode - 𝐓 🧱 Elision policy for derived layout symbols.
- TextFit
- 𝐓 🧱 ⚖️ Result of testing whether text fits within an inline extent.
- Text
Parse Error Kind - 𝐓 ::= 🚩 The category of a text parsing failure.
- Text
Segment Kind - 𝐓 🧱 Segment behavior during text wrapping.
- Textel
Width - 𝐓 🧱 📏 Cell-like inline extent occupied by a textel.
- Textel
Width Mode - 𝐓 🧱 Width policy for deriving textel inline extent.
Traits§
- Binary
- 🖹 ⅀
corebformatting. - Debug
- 🖹 🐛
core?formatting. (Derivable) - Debug
Ext - 🖹 🐛 Extension for contextual debugging.
- Display
- 🖹
coreFormat trait for an empty format,{}. - FmtWrite
- 🖹
coreWriting or formatting into Unicode-accepting buffers or streams. - FromStr
- 𝐓 🍃
coreParse a value from a string. - Grapheme
grapheme - 𝐓 Common trait for EGC types.
- Lower
Exp - 🖹 ⅀
coreeformatting. - Lower
Hex - 🖹 ⅀
corexformatting. - Octal
- 🖹 ⅀
coreoformatting. - Pointer
- 🖹
corepformatting. - StrExt
- 🧶
Extension trait providing additional methods for
&str. - String
Ext alloc - 🧶
Extension trait providing additional methods for
String. - ToString
alloc - 𝐓 💱
allocA trait for converting a value to aString. - Unicode
Scalar - 𝐓 Common trait for Unicode scalar types.
- Upper
Exp - 🖹 ⅀
coreEformatting. - Upper
Hex - 🖹 ⅀
coreXformatting.
Type Aliases§
- FmtResult
- 🖹 ⚖️ The type returned by formatter methods.
- Text
Unit - 𝐓 Basic text-domain unit.
- char
- ⚙️ 𝐓
coreA 32-bit Unicode scalar.
Derive Macros§
- Debug
- 🖹 🐛
core?formatting. (Derivable)