# TypeEntry

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-static-view-locator/struct-typeentry/

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

```rust
struct TypeEntry<V: 'static>
```

An entry of a [`TypeTable`](/docs/0.5.0/api/ferroui-static-view-locator/struct-typetable/): the type, as the function that gives its `TypeId`
(`TypeId::of::<T>`), and the value of the type.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/StaticViewLocator/FerroUI.StaticViewLocator/table.rs#L18)

## Members

- [`new`](#function-new)
- [`type_id`](#function-type_id)
- [`value`](#function-value)

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

### new

```rust
const fn new(type_id: fn() -> TypeId, value: V) -> Self
```

The entry of the type whose id `type_id` gives (`TypeId::of::<T>`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/StaticViewLocator/FerroUI.StaticViewLocator/table.rs#L25)

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

### type_id

```rust
fn type_id(self: &Self) -> TypeId
```

The id of the type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/StaticViewLocator/FerroUI.StaticViewLocator/table.rs#L30)

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

### value

```rust
fn value(self: &Self) -> &V
```

The value of the type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/StaticViewLocator/FerroUI.StaticViewLocator/table.rs#L35)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`

## Availability

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