# ListObservableCollectionAdaptor

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

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

```rust
struct ListObservableCollectionAdaptor<T: Clone + PartialEq + 'static>
```

Applies the change sets of a list to an observable collection, loading it with a reset above
a threshold of changes (`ObservableCollectionAdaptor<T>`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/observable_collection_adaptor.rs#L19)

## Members

- [`new`](#function-new)
- [`with_options`](#function-with_options)
- [`with_threshold`](#function-with_threshold)

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

### new

```rust
fn new(collection: Rc<dyn IObservableCollection<T>>) -> Self
```

The adaptor with the default options (`ObservableCollectionAdaptor(IObservableCollection<T>)`,
`DynamicDataOptions.Binding`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/observable_collection_adaptor.rs#L32)

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

### with_options

```rust
fn with_options(collection: Rc<dyn IObservableCollection<T>>, options: BindingOptions) -> Self
```

The adaptor with `options` (`ObservableCollectionAdaptor(IObservableCollection<T>,
BindingOptions)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/observable_collection_adaptor.rs#L38)

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

### with_threshold

```rust
fn with_threshold(collection: Rc<dyn IObservableCollection<T>>, refresh_threshold: usize, allow_replace: bool, reset_on_first_time_load: bool) -> Self
```

The adaptor with every part (`ObservableCollectionAdaptor(IObservableCollection<T>, int,
bool allowReplace = true, bool resetOnFirstTimeLoad = true)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/observable_collection_adaptor.rs#L44)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`IChangeSetAdaptor<T>`](/docs/0.5.0/api/ferroui-dynamic-data/cache/trait-ichangesetadaptor/)

## Availability

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