# IKeyValue

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dynamic-data/cache/trait-ikeyvalue/

**trait** · [`ferroui-dynamic-data`](/docs/0.5.0/api/ferroui-dynamic-data/) · v0.5.0

```rust
trait IKeyValue<T, K>
```

A key and its item (`IKeyValue<TObject, TKey>`, with `IKey<TKey>`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/key_value.rs#L7)

## Members

- [`key`](#function-key)
- [`value`](#function-value)

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

### key

```rust
fn key(self: &Self) -> &K
```

The key (`Key`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/key_value.rs#L9)

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

### value

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

The item (`Value`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/key_value.rs#L11)

## Trait implementations

- [`IKeyValue<T, K>`](/docs/0.5.0/api/ferroui-dynamic-data/cache/trait-ikeyvalue/)

## Availability

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