# GroupChangeSet

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

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

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

The changes of the groups of a cache (`IGroupChangeSet<TObject, TKey, TGroupKey>`, a change set
of `IGroup<TObject, TKey, TGroupKey>` keyed by the group key): the adds and removes of groups,
whose items change through the cache of each group.

It holds a plain change set of [`Group`](/docs/0.5.0/api/ferroui-dynamic-data/cache/struct-group/)s, which `Deref` and [`IChangeSet`](/docs/0.5.0/api/ferroui-dynamic-data/cache/trait-ichangeset/) give, so the
operators of caches apply to a sequence of groups as upstream's do through the interface
(docs/porting/reactive.md, section 5.4).

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

## Members

- [`empty`](#function-empty)
- [`change_set`](#function-change_set)

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

### empty

```rust
fn empty() -> Self
```

A change set without changes (`GroupChangeSet<TObject, TKey, TGroupKey>.Empty`).

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

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

### change_set

```rust
fn change_set(self: &Self) -> &ChangeSet<Group<T, K, G>, G>
```

The changes as a plain change set.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- `Clone`
- `Default`
- `From<ChangeSet<Group<T, K, G>, G>>`
- `From<Vec<Change<Group<T, K, G>, G>>>`
- `Deref`
- `IntoIterator`
- [`IChangeSet<Group<T, K, G>, G>`](/docs/0.5.0/api/ferroui-dynamic-data/cache/trait-ichangeset/)
- `PartialEq`
- `Debug`

## Availability

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