# NotifyCollectionChangedEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-system/collections/specialized/struct-notifycollectionchangedeventargs/

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

```rust
struct NotifyCollectionChangedEventArgs<'a, T>
```

Describes a change to a collection.

Indexes are `-1` when not applicable to the action, as in the notification
model this mirrors.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/collections/specialized/notify_collection_changed_event_args.rs#L20)

## Members

- [`action`](#struct_field-action)
- [`new_items`](#struct_field-new_items)
- [`old_items`](#struct_field-old_items)
- [`new_starting_index`](#struct_field-new_starting_index)
- [`old_starting_index`](#struct_field-old_starting_index)
- [`share`](#function-share)

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

### action

```rust
action: NotifyCollectionChangedAction
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/collections/specialized/notify_collection_changed_event_args.rs#L21)

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

### new_items

```rust
new_items: &'a [T]
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/collections/specialized/notify_collection_changed_event_args.rs#L22)

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

### old_items

```rust
old_items: &'a [T]
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/collections/specialized/notify_collection_changed_event_args.rs#L23)

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

### new_starting_index

```rust
new_starting_index: i32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/collections/specialized/notify_collection_changed_event_args.rs#L24)

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

### old_starting_index

```rust
old_starting_index: i32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/collections/specialized/notify_collection_changed_event_args.rs#L25)

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

### share

```rust
fn share(self: &Self) -> SharedNotifyCollectionChangedEventArgs<T>
```

The change as an owned, shareable value: what untyped code (an
event handler wired up by markup) is given, since the borrowed form
cannot be held in an untyped value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/collections/specialized/notify_collection_changed_event_args.rs#L32)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`

## Availability

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