# SortAndVirtualizeOptions

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

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

```rust
struct SortAndVirtualizeOptions
```

The options of `SortAndVirtualize` (`SortAndVirtualizeOptions`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/sort_and_page_options.rs#L25)

## Members

- [`reset_threshold`](#struct_field-reset_threshold)
- [`use_binary_search`](#struct_field-use_binary_search)
- [`initial_capacity`](#struct_field-initial_capacity)

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

### reset_threshold

```rust
reset_threshold: usize
```

The number of changes from which the sorted items are rebuilt rather than edited; 0 never
rebuilds (`ResetThreshold`, by default `BindingOptions.DefaultResetThreshold`, 25).

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

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

### use_binary_search

```rust
use_binary_search: bool
```

Find positions with a binary search, which needs the values that the comparer reads never
to change (`UseBinarySearch`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/sort_and_page_options.rs#L31)

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

### initial_capacity

```rust
initial_capacity: usize
```

The initial capacity of the sorted list (`InitialCapacity`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/sort_and_page_options.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`
- `Equivalent<K>`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- `Default`

## Availability

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