# Group

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

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

```rust
struct Group<T, G>
```

A group of the items of a list that share a group key (`Group<TObject, TGroup>`, the `IGroup`
of the change sets of `GroupOn`): the grouping edits its list, and its observers watch it. A
clone is the same group.

Deviation (DEVIATIONS.md, DynamicData): upstream's class is internal and its change sets hold
the interface `IGroup`; here they hold this type, so it is public.

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

## Members

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

<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/internal/group.rs#L37)

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

### list

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

The items of the group (`List`).

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

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

### ptr_eq

```rust
fn ptr_eq(self: &Self, other: &Self) -> bool
```

Whether `self` and `other` are the same group (`ReferenceEquals`).

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ToString`
- `Equivalent<K>`
- `Clone`
- [`IGroup<T, G>`](/docs/0.5.0/api/ferroui-dynamic-data/cache/trait-igroup/)
- [`IDisposable`](/docs/0.5.0/api/ferroui-base/reactive/use-idisposable/)
- `PartialEq`
- `Eq`
- `Hash`
- `Display`
- `Debug`

## Availability

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