# IBindableList

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/data/model/trait-ibindablelist/

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

```rust
trait IBindableList
```

Untyped indexed access to a list, for bindings with an indexer in their
path (`Items[2]`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/model/i_notify_collection_changed.rs#L11)

## Members

- [`count`](#function-count)
- [`item_type`](#function-item_type)
- [`get_item`](#function-get_item)
- [`set_item`](#function-set_item)
- [`as_notify_collection_changed`](#function-as_notify_collection_changed)

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

### count

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

The number of items.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/model/i_notify_collection_changed.rs#L13)

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

### item_type

```rust
fn item_type(self: &Self) -> ValueType
```

The type of the items.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/model/i_notify_collection_changed.rs#L16)

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

### get_item

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

The item at `index` as an untyped value, or `None` if out of range.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/model/i_notify_collection_changed.rs#L21)

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

### set_item

```rust
fn set_item(self: &Self, index: usize, value: &BoxedValue) -> bool
```

Replaces the item at `index`. Returns false if the index is out of
range, the list is read-only or the value is of the wrong type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/model/i_notify_collection_changed.rs#L25)

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

### as_notify_collection_changed

```rust
fn as_notify_collection_changed(self: &Self) -> Option<&dyn INotifyCollectionChanged>
```

The change notifications of the list, if it is a notifying list.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/model/i_notify_collection_changed.rs#L28)

## Trait implementations

- [`IBindableList`](/docs/0.5.0/api/ferroui-base/data/model/trait-ibindablelist/)

## Availability

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