# VirtualResponse

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

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

```rust
struct VirtualResponse
```

The window of sorted items that a virtual change set holds (`VirtualResponse`). Two responses
are equal when their parts are (`VirtualResponse.DefaultComparer`).

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

## Members

- [`new`](#function-new)
- [`size`](#function-size)
- [`start_index`](#function-start_index)
- [`total_size`](#function-total_size)

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

### new

```rust
const fn new(size: usize, start_index: usize, total_size: usize) -> Self
```

The window of `size` items from `start_index`, of `total_size` items in all
(`VirtualResponse(int size, int startIndex, int totalSize)`).

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

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

### size

```rust
const fn size(self: &Self) -> usize
```

The number of items requested (`Size`).

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

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

### start_index

```rust
const fn start_index(self: &Self) -> usize
```

The index of the first item (`StartIndex`).

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

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

### total_size

```rust
const fn total_size(self: &Self) -> usize
```

The number of items of the whole collection (`TotalSize`).

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ToString`
- `Equivalent<K>`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- [`IVirtualResponse`](/docs/0.5.0/api/ferroui-dynamic-data/cache/trait-ivirtualresponse/)
- `Display`

## Availability

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