# CollectionUtils

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/utils/struct-collectionutils/

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

```rust
struct CollectionUtils
```

Collection helpers shared by the items controls.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/collection_utils.rs#L4)

## Members

- [`RESET_EVENT_ARGS`](#assoc_const-reset_event_args)
- [`insert_many`](#function-insert_many)

<a id="assoc_const-reset_event_args"></a>

### RESET_EVENT_ARGS

```rust
const RESET_EVENT_ARGS: ItemsChangedEventArgs<'static>
```

The arguments of a reset notification.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/collection_utils.rs#L8)

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

### insert_many

```rust
fn insert_many<T: Clone>(list: &mut Vec<T>, index: usize, item: T, count: usize)
```

Inserts `count` copies of `item` at `index`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/collection_utils.rs#L11)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`

## Availability

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