# CollectionChangedExtensions

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/change_sets/trait-collectionchangedextensions/

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

```rust
trait CollectionChangedExtensions: Sized + 'static
```

The `CollectionChanged` event of a collection as an observable (`CollectionChangedExtensions`).

It is implemented for the collections that are shared handles (`Clone`), such as
`ObservableCollection<T>`, since each notification carries the collection.

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

## Members

- [`observe_collection_changes`](#function-observe_collection_changes)

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

### observe_collection_changes

```rust
fn observe_collection_changes(self: &Self) -> Rc<dyn IObservable<CollectionChanged<Self>>>
```

The notifications of the `CollectionChanged` event of the collection, while subscribed
(`ObserveCollectionChanges`).

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

## Trait implementations

- [`CollectionChangedExtensions`](/docs/0.5.0/api/ferroui-reactiveui/change_sets/trait-collectionchangedextensions/)

## Availability

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