# UnshapedTextRun

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

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

```rust
struct UnshapedTextRun
```

A group of characters that can be shaped.

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

## Members

- [`new`](#function-new)
- [`bidi_level`](#function-bidi_level)
- [`run_properties`](#function-run_properties)

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

### new

```rust
fn new(text: ReadOnlyMemory<u16>, properties: Rc<dyn TextRunProperties>, bidi_level: i8) -> Self
```



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

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

### bidi_level

```rust
fn bidi_level(self: &Self) -> i8
```

The bidi level of the run.

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

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

### run_properties

```rust
fn run_properties(self: &Self) -> &Rc<dyn TextRunProperties>
```

The run's properties (never absent for an unshaped run).

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

## 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`
- [`TextRun`](/docs/0.5.0/api/ferroui-base/media/text_formatting/trait-textrun/)

## Availability

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