# PreparedText

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

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

```rust
struct PreparedText
```

Immutable metrics required by allocation-free line walking.

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

## Members

- [`font`](#function-font)
- [`white_space`](#function-white_space)
- [`discretionary_hyphen_width`](#function-discretionary_hyphen_width)
- [`tab_stop_advance`](#function-tab_stop_advance)
- [`widths`](#function-widths)
- [`line_end_fit_advances`](#function-line_end_fit_advances)
- [`line_end_paint_advances`](#function-line_end_paint_advances)
- [`kinds`](#function-kinds)
- [`breakable_widths`](#function-breakable_widths)
- [`breakable_prefix_widths`](#function-breakable_prefix_widths)
- [`chunks`](#function-chunks)
- [`simple_line_walk_fast_path`](#function-simple_line_walk_fast_path)

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

### font

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



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

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

### white_space

```rust
fn white_space(self: &Self) -> WhiteSpaceMode
```



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

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

### discretionary_hyphen_width

```rust
fn discretionary_hyphen_width(self: &Self) -> f64
```



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

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

### tab_stop_advance

```rust
fn tab_stop_advance(self: &Self) -> f64
```



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

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

### widths

```rust
fn widths(self: &Self) -> &[f64]
```



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

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

### line_end_fit_advances

```rust
fn line_end_fit_advances(self: &Self) -> &[f64]
```



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

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

### line_end_paint_advances

```rust
fn line_end_paint_advances(self: &Self) -> &[f64]
```



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

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

### kinds

```rust
fn kinds(self: &Self) -> &[SegmentBreakKind]
```



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

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

### breakable_widths

```rust
fn breakable_widths(self: &Self) -> &[Option<Vec<f64>>]
```



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

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

### breakable_prefix_widths

```rust
fn breakable_prefix_widths(self: &Self) -> &[Option<Vec<f64>>]
```



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

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

### chunks

```rust
fn chunks(self: &Self) -> &[PreparedLineChunk]
```



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

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

### simple_line_walk_fast_path

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



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

## Trait implementations

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

## Availability

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