# TextOperationError

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/rich_text/enum-textoperationerror/

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

```rust
enum TextOperationError
```

Failure to interpret a text operation. Unsupported flags are never silently
ignored, and parse/option validation finishes before an edit can cancel IME.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_document.rs#L169)

## Members

- [`InvalidOptions`](#variant-invalidoptions)
- [`UnsupportedOptions`](#variant-unsupportedoptions)
- [`Edit`](#variant-edit)
- [`Rtf`](#variant-rtf)
- [`Io`](#variant-io)
- [`InvalidEncoding`](#variant-invalidencoding)
- [`StreamLimitExceeded`](#variant-streamlimitexceeded)

<a id="variant-invalidoptions"></a>

### InvalidOptions

```rust
InvalidOptions(&'static str)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_document.rs#L170)

<a id="variant-unsupportedoptions"></a>

### UnsupportedOptions

```rust
UnsupportedOptions { operation: &'static str, bits: u32 }
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_document.rs#L171)

<a id="variant-edit"></a>

### Edit

```rust
Edit(rich_text_editor::EditError)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_document.rs#L172)

<a id="variant-rtf"></a>

### Rtf

```rust
Rtf(super::RtfError)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_document.rs#L173)

<a id="variant-io"></a>

### Io

```rust
Io(std::io::Error)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_document.rs#L174)

<a id="variant-invalidencoding"></a>

### InvalidEncoding

```rust
InvalidEncoding(&'static str)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_document.rs#L175)

<a id="variant-streamlimitexceeded"></a>

### StreamLimitExceeded

```rust
StreamLimitExceeded { limit: usize }
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_document.rs#L176)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToString`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Debug`
- `Display`
- [`Error`](/docs/0.5.0/api/ferroui-dynamic-data/kernel/struct-error/)
- `From<EditError>`
- `From<DocumentError>`
- `From<RtfError>`
- `From<Error>`

## Availability

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