Skip to main content

Module fmt

Module fmt 

Source
Expand description

C-compatible string formatting via strfmt. C-compatible string formatting via strfmt.

Provides FmtValue, FmtArg, and FmtArgVec for passing heterogeneous format arguments across FFI, and fmt_string as the main entry point. Used by fluent.rs and icu.rs for localization.

Structs§

FmtArg
A key-value pair mapping a format placeholder name to its value.
FmtArgVec
FmtArgVecSlice
C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.

Enums§

FmtArgVecDestructor
FmtValue
A format argument value that can hold any primitive type or string. Used in FmtArg to pass typed values into strfmt-based formatting.
OptionFmtArg

Functions§

fmt_string
Formats format by substituting placeholders with values from args. Returns the error message as a string on failure (for C FFI ergonomics).

Type Aliases§

FmtArgVecDestructorType