# SortAndBindOptions

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

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

```rust
struct SortAndBindOptions
```

The options of `SortAndBind` (`SortAndBindOptions`).

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

## Members

- [`reset_threshold`](#struct_field-reset_threshold)
- [`use_replace_for_updates`](#struct_field-use_replace_for_updates)
- [`use_binary_search`](#struct_field-use_binary_search)
- [`initial_capacity`](#struct_field-initial_capacity)
- [`reset_on_first_time_load`](#struct_field-reset_on_first_time_load)
- [`scheduler`](#struct_field-scheduler)

<a id="struct_field-reset_threshold"></a>

### reset_threshold

```rust
reset_threshold: usize
```

The number of changes above which the target is loaded again; 0 never (`ResetThreshold`).

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

<a id="struct_field-use_replace_for_updates"></a>

### use_replace_for_updates

```rust
use_replace_for_updates: bool
```

Whether an update that keeps its position replaces the item in place
(`UseReplaceForUpdates`).

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

<a id="struct_field-use_binary_search"></a>

### use_binary_search

```rust
use_binary_search: bool
```

Whether the positions are found by a binary search, which needs a comparer that tells every
item apart (`UseBinarySearch`).

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

<a id="struct_field-initial_capacity"></a>

### initial_capacity

```rust
initial_capacity: Option<usize>
```

The initial capacity of the collection that `SortAndBind` creates; `None` for the default
(`InitialCapacity`, `-1`).

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

<a id="struct_field-reset_on_first_time_load"></a>

### reset_on_first_time_load

```rust
reset_on_first_time_load: bool
```

Whether the first change set loads the target with a reset (`ResetOnFirstTimeLoad`).

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

<a id="struct_field-scheduler"></a>

### scheduler

```rust
scheduler: Option<std::rc::Rc<dyn IScheduler>>
```

The scheduler on which the changes are observed, if any (`Scheduler`).

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

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

## Availability

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