# DistinctChangeSet

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

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

```rust
struct DistinctChangeSet<T>
```

The changes of the distinct values of a sequence (`DistinctChangeSet<T>`,
`IDistinctChangeSet<T>`): each value is its own key.

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

## Members

- [`new`](#function-new)
- [`into_change_set`](#function-into_change_set)

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

### new

```rust
fn new(changes: Vec<Change<T, T>>) -> Self
```

The change set of `changes` (`DistinctChangeSet(IEnumerable<Change<T, T>>)`).

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

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

### into_change_set

```rust
fn into_change_set(self: Self) -> ChangeSet<T, T>
```

The plain change set.

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

## 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<Vec<Change<T, T>>>`
- `Deref`
- [`IChangeSet<T, T>`](/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/).
