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.
- FmtArg
Vec - FmtArg
VecSlice - C-compatible slice type for
$struct_name. This is a non-owning view into a Vec’s data.
Enums§
- FmtArg
VecDestructor - FmtValue
- A format argument value that can hold any primitive type or string.
Used in
FmtArgto pass typed values intostrfmt-based formatting. - Option
FmtArg
Functions§
- fmt_
string - Formats
formatby substituting placeholders with values fromargs. Returns the error message as a string on failure (for C FFI ergonomics).