# IGroup

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

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

```rust
trait IGroup<T, K, G>
```

A group of the items of a cache that share a group key, with the cache of those items
(`IGroup<TObject, TKey, TGroupKey>`): the items of the change sets of `Group`,
`GroupOnObservable` and `GroupOnProperty`.

Deviation (DEVIATIONS.md, DynamicData): the change sets of groups hold the concrete
`Group`, which implements this trait, rather than the interface: a change set
holds its items by value.

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

## Members

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

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

### key

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

The group key (`Key`, of `IKey<TGroupKey>`).

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

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

### cache

```rust
fn cache(self: &Self) -> Rc<dyn IObservableCache<T, K>>
```

The items of the group, as a cache that can be observed (`Cache`).

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

## Trait implementations

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

## Availability

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