# ObservableList

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dynamic-data/list/struct-observablelist/

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

```rust
struct ObservableList<T>
```

A read-only list of the items of a sequence of change sets (`AnonymousObservableList<T>`, the
result of `AsObservableList`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/observable_list.rs#L10)

## Members

- [`from_source`](#function-from_source)
- [`from_list`](#function-from_list)

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

### from_source

```rust
fn from_source<C: IChangeSet<T>>(source: Rc<dyn IObservable<C>>) -> Self
```

The list of the items of `source` (`AnonymousObservableList(IObservable<IChangeSet<T>>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/observable_list.rs#L22)

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

### from_list

```rust
fn from_list(list: &SourceList<T>) -> Self
```

A read-only view of `list` (`AnonymousObservableList(ISourceList<T>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/observable_list.rs#L27)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`SourceListEx<T>`](/docs/0.5.0/api/ferroui-dynamic-data/list/trait-sourcelistex/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`CacheSourceListCombineEx`](/docs/0.5.0/api/ferroui-dynamic-data/cache/trait-cachesourcelistcombineex/)
- `Clone`
- [`IObservableList<T>`](/docs/0.5.0/api/ferroui-dynamic-data/list/trait-iobservablelist/)
- [`IDisposable`](/docs/0.5.0/api/ferroui-base/reactive/use-idisposable/)
- [`ListChangeSetSource`](/docs/0.5.0/api/ferroui-dynamic-data/list/trait-listchangesetsource/)
- [`ListSourceListCombineEx`](/docs/0.5.0/api/ferroui-dynamic-data/list/trait-listsourcelistcombineex/)

## Availability

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