# PreparedRichInline

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-pretext/struct-preparedrichinline/

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

```rust
struct PreparedRichInline
```

Immutable, reusable rich inline preparation. Keep this value alive while
retaining any geometry-only ranges which refer to its source item indices.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext/pretext_layout_rich_inline.rs#L98)

## Members

- [`item_count`](#function-item_count)
- [`source_item_count`](#function-source_item_count)
- [`is_empty`](#function-is_empty)
- [`prepared_item`](#function-prepared_item)

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

### item_count

```rust
fn item_count(self: &Self) -> usize
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext/pretext_layout_rich_inline.rs#L104)

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

### source_item_count

```rust
fn source_item_count(self: &Self) -> usize
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext/pretext_layout_rich_inline.rs#L108)

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

### is_empty

```rust
fn is_empty(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext/pretext_layout_rich_inline.rs#L112)

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

### prepared_item

```rust
fn prepared_item(self: &Self, source_item_index: usize) -> Option<&Rc<PreparedTextWithSegments>>
```

Obtain the prepared text for an original source item. Whitespace-only
source items have no prepared text, but may contribute a collapsed gap.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext/pretext_layout_rich_inline.rs#L118)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- `Debug`

## Availability

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