# SortedChangeSet

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

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

```rust
struct SortedChangeSet<T, K>
```

The changes of a sorted cache with its items in order (`SortedChangeSet<TObject, TKey>`).

It dereferences to its [`ChangeSet`](/docs/0.5.0/api/ferroui-dynamic-data/cache/struct-changeset/), as upstream's derives from it.

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

## Members

- [`new`](#function-new)
- [`empty`](#function-empty)
- [`sorted_items`](#function-sorted_items)
- [`changes`](#function-changes)

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

### new

```rust
fn new(sorted_items: KeyValueCollection<T, K>, updates: ChangeSet<T, K>) -> Self
```

The changes `updates` that lead to `sorted_items` (`SortedChangeSet(IKeyValueCollection,
IEnumerable<Change>)`).

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

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

### empty

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

A change set without changes or items (`SortedChangeSet<TObject, TKey>.Empty`).

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

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

### sorted_items

```rust
fn sorted_items(self: &Self) -> &KeyValueCollection<T, K>
```

The items, sorted (`SortedItems`).

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

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

### changes

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

The changes.

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

## 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`
- `ToString`
- `Clone`
- `Default`
- `Deref`
- `IntoIterator`
- [`IChangeSet<T, K>`](/docs/0.5.0/api/ferroui-dynamic-data/cache/trait-ichangeset/)
- [`ISortedChangeSet<T, K>`](/docs/0.5.0/api/ferroui-dynamic-data/cache/trait-isortedchangeset/)
- `PartialEq`
- `Display`
- `Debug`

## Availability

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