# NameRecord

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

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

```rust
struct NameRecord
```

One record of the `name` table; the string is decoded on demand.

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

## Members

- [`new`](#function-new)
- [`platform`](#function-platform)
- [`language_id`](#function-language_id)
- [`name_id`](#function-name_id)
- [`offset`](#function-offset)
- [`length`](#function-length)
- [`encoding`](#function-encoding)
- [`get_value`](#function-get_value)

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

### new

```rust
fn new(string_storage: ReadOnlyMemory<u8>, platform: PlatformID, language_id: u16, name_id: KnownNameIds, offset: u16, length: u16, encoding: Encoding) -> Self
```



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

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

### platform

```rust
fn platform(self: &Self) -> PlatformID
```



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

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

### language_id

```rust
fn language_id(self: &Self) -> u16
```

The language of the record (an LCID for the Windows platform).

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

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

### name_id

```rust
fn name_id(self: &Self) -> KnownNameIds
```



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

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

### offset

```rust
fn offset(self: &Self) -> u16
```



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

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

### length

```rust
fn length(self: &Self) -> u16
```



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

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

### encoding

```rust
fn encoding(self: &Self) -> Encoding
```



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

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

### get_value

```rust
fn get_value(self: &Self) -> String
```

Decodes the string of the record.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`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`
- `Debug`

## Availability

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