# SharedNotifyCollectionChangedEventArgs

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

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

```rust
struct SharedNotifyCollectionChangedEventArgs<T>
```

The owned form of [`NotifyCollectionChangedEventArgs`](/docs/0.5.0/api/ferroui-system/collections/specialized/struct-notifycollectionchangedeventargs/): a shared handle
to the description of a change. Clones refer to the same description and
handles compare by identity, as the event args object this mirrors.

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

## Members

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

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

### action

```rust
fn action(self: &Self) -> NotifyCollectionChangedAction
```

The action that caused the notification.

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

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

### new_items

```rust
fn new_items(self: &Self) -> &[T]
```

The items involved in the change that are new.

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

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

### old_items

```rust
fn old_items(self: &Self) -> &[T]
```

The items affected by a replace, remove or move.

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

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

### new_starting_index

```rust
fn new_starting_index(self: &Self) -> i32
```

The index at which the change occurred; `-1` when not applicable.

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

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

### old_starting_index

```rust
fn old_starting_index(self: &Self) -> i32
```

The index at which a move, remove or replace occurred; `-1` when not
applicable.

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

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

### as_args

```rust
fn as_args(self: &Self) -> NotifyCollectionChangedEventArgs<'_, T>
```

The change in the borrowed form handlers take.

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

## Trait implementations

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

## Availability

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