# ChangeSet

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

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

```rust
struct ChangeSet<T>
```

The changes of one edit of a list (`ChangeSet<T>`): shared and immutable, as the change sets of
caches are.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/change_set.rs#L10)

## Members

- [`empty`](#function-empty)
- [`changes`](#function-changes)
- [`count`](#function-count)
- [`adds`](#function-adds)
- [`moves`](#function-moves)
- [`refreshes`](#function-refreshes)
- [`removes`](#function-removes)
- [`replaced`](#function-replaced)
- [`total_changes`](#function-total_changes)
- [`ptr_eq`](#function-ptr_eq)

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

### empty

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

A change set without changes (`ChangeSet<T>.Empty`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/change_set.rs#L28)

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

### changes

```rust
fn changes(self: &Self) -> &[Change<T>]
```

The changes, in order.

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

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

### count

```rust
fn count(self: &Self) -> usize
```

The number of changes (`Count`).

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

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

### adds

```rust
fn adds(self: &Self) -> usize
```

The number of items added, ranges counted by their items (`Adds`).

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

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

### moves

```rust
fn moves(self: &Self) -> usize
```

The number of moves (`Moves`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/change_set.rs#L55)

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

### refreshes

```rust
fn refreshes(self: &Self) -> usize
```

The number of refreshes (`Refreshes`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/change_set.rs#L60)

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

### removes

```rust
fn removes(self: &Self) -> usize
```

The number of items removed, ranges and clears counted by their items (`Removes`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/change_set.rs#L65)

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

### replaced

```rust
fn replaced(self: &Self) -> usize
```

The number of replacements (`Replaced`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/change_set.rs#L77)

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

### total_changes

```rust
fn total_changes(self: &Self) -> usize
```

The number of changed items (`TotalChanges`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/change_set.rs#L82)

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

### ptr_eq

```rust
fn ptr_eq(self: &Self, other: &Self) -> bool
```

Whether `self` and `other` are the same change set (`ReferenceEquals`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/change_set.rs#L87)

## 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>>>`
- `FromIterator<Change<T>>`
- `Deref`
- `IntoIterator`
- `PartialEq`
- `Debug`
- [`IChangeSet<T>`](/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/).
