# VirtualChangeSet

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

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

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

The changes of a window of a sorted cache, with the items of the window in order and the
window (`VirtualChangeSet<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/virtual_change_set.rs#L18)

## Members

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

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

### new

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

The changes `items` of the window `response`, which holds `sorted_items`
(`VirtualChangeSet(IEnumerable<Change>, IKeyValueCollection, IVirtualResponse)`).

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

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

### empty

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

A change set without changes, of no window (`VirtualChangeSet<TObject, TKey>.Empty`).

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

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

### sorted_items

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

The items of the window, sorted (`SortedItems`).

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

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

### response

```rust
fn response(self: &Self) -> &VirtualResponse
```

The window (`Response`).

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

<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/virtual_change_set.rs#L59)

## 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/)
- [`IVirtualChangeSet<T, K>`](/docs/0.5.0/api/ferroui-dynamic-data/cache/trait-ivirtualchangeset/)
- `PartialEq`
- `Display`
- `Debug`

## Availability

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