# IBindableArray

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

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

```rust
trait IBindableArray
```

Untyped access to an array: a fixed-size collection accessed with integer
indexes, one per dimension.

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

## Members

- [`rank`](#function-rank)
- [`element_type`](#function-element_type)
- [`get_value`](#function-get_value)
- [`set_value`](#function-set_value)

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

### rank

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

The number of dimensions.

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

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

### element_type

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

The type of the elements.

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

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

### get_value

```rust
fn get_value(self: &Self, indexes: &[i32]) -> Result<Option<BoxedValue>, BindingError>
```

The element at `indexes`.

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

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

### set_value

```rust
fn set_value(self: &Self, indexes: &[i32], value: Option<&BoxedValue>) -> Result<(), BindingError>
```

Replaces the element at `indexes`.

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

## Trait implementations

- [`IBindableArray`](/docs/0.5.0/api/ferroui-base/data/model/trait-ibindablearray/)

## Availability

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