# FontTableError

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/fonts/tables/enum-fonttableerror/

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

```rust
enum FontTableError
```

The failures the table readers report instead of the exceptions the
reference implementation throws while parsing font data.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/big_endian_binary_reader.rs#L13)

## Members

- [`EndOfSpan`](#variant-endofspan)
- [`ArgumentOutOfRange`](#variant-argumentoutofrange)
- [`InvalidOperation`](#variant-invalidoperation)
- [`InvalidFontTable`](#variant-invalidfonttable)
- [`MissingFontTable`](#variant-missingfonttable)
- [`is_invalid_operation`](#function-is_invalid_operation)
- [`is_argument_out_of_range`](#function-is_argument_out_of_range)

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

### EndOfSpan

```rust
EndOfSpan { missing: i64 }
```

A read ran past the end of the data (reference: `InvalidOperationException`
"End of span reached ...").

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/big_endian_binary_reader.rs#L16)

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

### ArgumentOutOfRange

```rust
ArgumentOutOfRange { param_name: &'static str, message: Option<String> }
```

An offset, count or slice was outside of the data (reference:
`ArgumentOutOfRangeException`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/big_endian_binary_reader.rs#L22)

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

### InvalidOperation

```rust
InvalidOperation(String)
```

Any other invalid state (reference: `InvalidOperationException`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/big_endian_binary_reader.rs#L29)

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

### InvalidFontTable

```rust
InvalidFontTable(super::invalid_font_table_exception::InvalidFontTableError)
```

Invalid data in a table.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/big_endian_binary_reader.rs#L31)

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

### MissingFontTable

```rust
MissingFontTable(super::missing_font_table_exception::MissingFontTableError)
```

A required table is missing.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/big_endian_binary_reader.rs#L33)

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

### is_invalid_operation

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

Whether the reference implementation reports this failure as an
`InvalidOperationException` (end of span or invalid state).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/big_endian_binary_reader.rs#L43)

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

### is_argument_out_of_range

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

Whether the reference implementation reports this failure as an
`ArgumentOutOfRangeException`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/big_endian_binary_reader.rs#L49)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ToString`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Display`
- [`Error`](/docs/0.5.0/api/ferroui-dynamic-data/kernel/struct-error/)
- `From<InvalidFontTableError>`
- `From<MissingFontTableError>`

## Availability

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