# IndexedTextRun

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/text_formatting/struct-indexedtextrun/

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

```rust
struct IndexedTextRun
```

A text run of a line together with its text source position and its
position in the visual run order.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/indexed_text_run.rs#L8)

## Members

- [`text_source_character_index`](#struct_field-text_source_character_index)
- [`run_index`](#struct_field-run_index)
- [`next_run_index`](#struct_field-next_run_index)
- [`text_run`](#struct_field-text_run)

<a id="struct_field-text_source_character_index"></a>

### text_source_character_index

```rust
text_source_character_index: i32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/indexed_text_run.rs#L9)

<a id="struct_field-run_index"></a>

### run_index

```rust
run_index: std::cell::Cell<i32>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/indexed_text_run.rs#L10)

<a id="struct_field-next_run_index"></a>

### next_run_index

```rust
next_run_index: std::cell::Cell<i32>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/indexed_text_run.rs#L11)

<a id="struct_field-text_run"></a>

### text_run

```rust
text_run: std::cell::RefCell<Option<std::rc::Rc<dyn TextRun>>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/indexed_text_run.rs#L12)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`

## Availability

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