# format_with

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/data/converters/composite_format/function-format_with/

**function** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
fn format_with(format: &str, args: &[FormatArg<'_>], culture: &crate::utilities::CultureInfo) -> Result<String, FormatError>
```

Replaces the format items of `format` with the text of the matching
arguments, formatted with the conventions of `culture`: the
`string.Format(IFormatProvider, ..)` of the managed runtime.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/converters/composite_format.rs#L147)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
