# Group

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

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

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

A group of the items of a cache that share a group key (`ManagedGroup<TObject, TKey,
TGroupKey>`, the `IGroup` of the change sets of `Group`): the grouping operators edit its cache,
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 the change sets hold this type, so it is public, as `Group`.

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

## Members

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

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

### key

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

The group key (`Key`).

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

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

### cache

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

The items of the group (`Cache`).

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

<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/cache/internal/managed_group.rs#L74)

## 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, K, 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`
- [`IChangeSet<Group<T, K, G>, G>`](/docs/0.5.0/api/ferroui-dynamic-data/cache/trait-ichangeset/)

## Availability

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