# CollectionChanged

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/change_sets/struct-collectionchanged/

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

```rust
struct CollectionChanged<S>
```

One `CollectionChanged` notification of a collection, with the collection that raised it
(`CollectionChanged`): the element of `observe_collection_changes`.

Deviation (DEVIATIONS.md, ReactiveUI): upstream's sender is an `object` and its arguments are
the `NotifyCollectionChangedEventArgs` object, both compared by reference. The sender here is
the handle of the collection, of its own type, and the arguments are the untyped description of
the change that `INotifyCollectionChanged` raises in `ferroui-system` (`CollectionChange`),
compared by value.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/change_sets/collection_changed.rs#L14)

## Members

- [`new`](#function-new)
- [`sender`](#function-sender)
- [`event_args`](#function-event_args)

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

### new

```rust
fn new(sender: S, event_args: CollectionChange) -> Self
```

A notification of `sender` (`CollectionChanged(object?, NotifyCollectionChangedEventArgs)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/change_sets/collection_changed.rs#L21)

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

### sender

```rust
fn sender(self: &Self) -> &S
```

The collection that raised the event (`Sender`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/change_sets/collection_changed.rs#L26)

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

### event_args

```rust
fn event_args(self: &Self) -> &CollectionChange
```

The description of the change (`EventArgs`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/change_sets/collection_changed.rs#L31)

## 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`
- `Debug`
- `PartialEq`

## Availability

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