# SortedObservableCollectionAdaptor

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

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

```rust
struct SortedObservableCollectionAdaptor
```

Applies the sorted change sets of a cache to an observable collection at the positions they
give, loading it with a reset above a threshold of changes
(`SortedObservableCollectionAdaptor<TObject, TKey>`).

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

## Members

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

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

### new

```rust
fn new(refresh_threshold: usize, use_replace_for_updates: bool, reset_on_first_time_load: bool) -> Self
```

The adaptor with every part (`SortedObservableCollectionAdaptor(int, bool useReplaceForUpdates
= true, bool resetOnFirstTimeLoad = true)`).

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

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

### with_options

```rust
fn with_options(options: BindingOptions) -> Self
```

The adaptor with `options` (`SortedObservableCollectionAdaptor(BindingOptions)`).

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

## 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`
- `Copy`
- `Debug`
- `Default`
- [`ISortedObservableCollectionAdaptor<T, K>`](/docs/0.5.0/api/ferroui-dynamic-data/binding/trait-isortedobservablecollectionadaptor/)

## Availability

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