# TextInfo

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/utilities/struct-textinfo/

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

```rust
struct TextInfo
```

The text conventions of a culture (C# `TextInfo`).

Only the conventions of the invariant culture are built in: those of
other cultures come from the provider registered with the locator (see
`ICultureDataProvider`); a culture without
data gets the conventions of its nearest parent that has data and finally
the invariant ones.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/text_info.rs#L20)

## Members

- [`new`](#function-new)
- [`invariant_info`](#function-invariant_info)
- [`current_info`](#function-current_info)
- [`list_separator`](#function-list_separator)
- [`set_list_separator`](#function-set_list_separator)
- [`with_list_separator`](#function-with_list_separator)

<a id="function-new"></a>

### new

```rust
fn new() -> TextInfo
```

The conventions of the invariant culture, to be changed with the
setters.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/text_info.rs#L27)

<a id="function-invariant_info"></a>

### invariant_info

```rust
fn invariant_info() -> Rc<TextInfo>
```

The conventions of the invariant culture.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/text_info.rs#L45)

<a id="function-current_info"></a>

### current_info

```rust
fn current_info() -> Rc<TextInfo>
```

The conventions of the current culture.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/text_info.rs#L50)

<a id="function-list_separator"></a>

### list_separator

```rust
fn list_separator(self: &Self) -> &str
```

Gets the string that separates items in a list (C# `ListSeparator`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/text_info.rs#L55)

<a id="function-set_list_separator"></a>

### set_list_separator

```rust
fn set_list_separator(self: &mut Self, value: impl Into<String>)
```

Sets the string that separates items in a list.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/text_info.rs#L60)

<a id="function-with_list_separator"></a>

### with_list_separator

```rust
fn with_list_separator(self: Self, value: impl Into<String>) -> Self
```

The conventions with the given list separator.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/text_info.rs#L65)

## 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`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Default`

## Availability

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