# CollectionChangeState

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/selection/struct-collectionchangestate/

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

```rust
struct CollectionChangeState<T>
```

Details the results of a collection change on the current selection.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/selection/selection_node_base.rs#L52)

## Members

- [`shift_index`](#struct_field-shift_index)
- [`shift_delta`](#struct_field-shift_delta)
- [`removed_items`](#struct_field-removed_items)

<a id="struct_field-shift_index"></a>

### shift_index

```rust
shift_index: i32
```

The first index that was shifted as a result of the collection
changing.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/selection/selection_node_base.rs#L55)

<a id="struct_field-shift_delta"></a>

### shift_delta

```rust
shift_delta: i32
```

How the indexes after `shift_index` were shifted.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/selection/selection_node_base.rs#L57)

<a id="struct_field-removed_items"></a>

### removed_items

```rust
removed_items: Option<Vec<Option<T>>>
```

The items removed by the collection change, if any.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/selection/selection_node_base.rs#L59)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`

## Availability

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