# RangeChange

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

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

```rust
struct RangeChange<T>
```

The items of a change of a range, and the index of the first (`RangeChange<T>`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/range_change.rs#L5)

## Members

- [`new`](#function-new)
- [`count`](#function-count)
- [`index`](#function-index)
- [`items`](#function-items)
- [`iter`](#function-iter)
- [`add`](#function-add)
- [`insert`](#function-insert)
- [`set_starting_index`](#function-set_starting_index)

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

### new

```rust
fn new(items: Vec<T>, index: Option<usize>) -> Self
```

`RangeChange(IEnumerable<T>, int index = -1)`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/range_change.rs#L19)

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

### count

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

The number of items (`Count`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/range_change.rs#L24)

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

### index

```rust
fn index(self: &Self) -> Option<usize>
```

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/range_change.rs#L29)

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

### items

```rust
fn items(self: &Self) -> &[T]
```

The items.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/range_change.rs#L34)

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

### iter

```rust
fn iter(self: &Self) -> std::slice::Iter<'_, T>
```



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

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

### add

```rust
fn add(self: &mut Self, item: T)
```

Adds an item at the end (`Add`).

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

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

### insert

```rust
fn insert(self: &mut Self, index: usize, item: T)
```

Inserts an item (`Insert`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/range_change.rs#L48)

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

### set_starting_index

```rust
fn set_starting_index(self: &mut Self, index: Option<usize>)
```

Sets the index of the first item (`SetStartingIndex`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/range_change.rs#L53)

## 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`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- `Default`
- `IntoIterator`

## Availability

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