# IGroup

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

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

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

A group of the items of a list that share a group key, with the list of those items
(`IGroup<TObject, TGroup>`): the items of the change sets of `GroupOn` and `GroupOnProperty`.

Deviation (DEVIATIONS.md, DynamicData): the change sets of groups hold the concrete
`Group`, which implements this trait, rather than the interface.

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

## Members

- [`group_key`](#function-group_key)
- [`list`](#function-list)

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

### group_key

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

The group key (`GroupKey`).

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

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

### list

```rust
fn list(self: &Self) -> Rc<dyn IObservableList<T>>
```

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

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

## Trait implementations

- [`IGroup<T, 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/).
