# FormatArg

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

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

```rust
enum FormatArg<'a>
```

An argument of a composite format operation.

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

## Members

- [`Null`](#variant-null)
- [`Str`](#variant-str)
- [`Bool`](#variant-bool)
- [`Char`](#variant-char)
- [`I8`](#variant-i8)
- [`I16`](#variant-i16)
- [`I32`](#variant-i32)
- [`I64`](#variant-i64)
- [`U64`](#variant-u64)
- [`F64`](#variant-f64)
- [`F32`](#variant-f32)
- [`Decimal`](#variant-decimal)
- [`DateTime`](#variant-datetime)
- [`DateTimeOffset`](#variant-datetimeoffset)
- [`TimeSpan`](#variant-timespan)

<a id="variant-null"></a>

### Null

```rust
Null
```

A null reference: formats as empty text.

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

<a id="variant-str"></a>

### Str

```rust
Str(&'a str)
```

A string: ignores the format string of the item.

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

<a id="variant-bool"></a>

### Bool

```rust
Bool(bool)
```

A boolean: `True` or `False`.

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

<a id="variant-char"></a>

### Char

```rust
Char(char)
```

A character.

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

<a id="variant-i8"></a>

### I8

```rust
I8(i8)
```

An 8-bit signed integer (the width matters for `X` and `B`).

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

<a id="variant-i16"></a>

### I16

```rust
I16(i16)
```

A 16-bit signed integer (the width matters for `X` and `B`).

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

<a id="variant-i32"></a>

### I32

```rust
I32(i32)
```

A 32-bit signed integer (the width matters for `X` and `B`).

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

<a id="variant-i64"></a>

### I64

```rust
I64(i64)
```

A 64-bit signed integer.

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

<a id="variant-u64"></a>

### U64

```rust
U64(u64)
```

An unsigned integer of any width.

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

<a id="variant-f64"></a>

### F64

```rust
F64(f64)
```

A double precision floating point number.

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

<a id="variant-f32"></a>

### F32

```rust
F32(f32)
```

A single precision floating point number.

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

<a id="variant-decimal"></a>

### Decimal

```rust
Decimal(crate::utilities::Decimal)
```

A decimal (128-bit) number.

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

<a id="variant-datetime"></a>

### DateTime

```rust
DateTime(crate::utilities::DateTime)
```

A date and time: formatted with date and time format strings.

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

<a id="variant-datetimeoffset"></a>

### DateTimeOffset

```rust
DateTimeOffset(crate::utilities::DateTimeOffset)
```

A date and time with an offset from UTC.

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

<a id="variant-timespan"></a>

### TimeSpan

```rust
TimeSpan(crate::animation::SignedDuration)
```

A time interval: formatted with time span format strings.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`

## Availability

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