# CmapSubtableEntry

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/fonts/tables/cmap/struct-cmapsubtableentry/

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

```rust
struct CmapSubtableEntry
```

Representation of a subtable entry in the 'cmap' table directory.

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

## Members

- [`platform`](#struct_field-platform)
- [`encoding`](#struct_field-encoding)
- [`offset`](#struct_field-offset)
- [`format`](#struct_field-format)
- [`new`](#function-new)
- [`get_subtable_memory`](#function-get_subtable_memory)

<a id="struct_field-platform"></a>

### platform

```rust
platform: crate::media::fonts::tables::platform_id::PlatformID
```



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

<a id="struct_field-encoding"></a>

### encoding

```rust
encoding: super::cmap_encoding::CmapEncoding
```



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

<a id="struct_field-offset"></a>

### offset

```rust
offset: i32
```



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

<a id="struct_field-format"></a>

### format

```rust
format: super::cmap_format::CmapFormat
```



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

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

### new

```rust
const fn new(platform: PlatformID, encoding: CmapEncoding, offset: i32, format: CmapFormat) -> Self
```



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

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

### get_subtable_memory

```rust
fn get_subtable_memory(self: &Self, table: &ReadOnlyMemory<u8>) -> Result<ReadOnlyMemory<u8>, FontTableError>
```

The part of the `cmap` table that starts at this entry's offset.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`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`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- `Default`

## Availability

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