# BindableDictionary

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

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

```rust
struct BindableDictionary<K: Eq + Hash + Clone + Display + 'static, V: PropertyValue>
```

A notifying dictionary that bindings can index into (`Items[key]`): a
[`FerroDictionary`](/docs/0.5.0/api/ferroui-base/collections/struct-ferrodictionary/) together with the untyped change event that binding
indexers subscribe to.

As a model object it has identity equality.

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

## Members

- [`new`](#function-new)
- [`items`](#function-items)

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

### new

```rust
fn new(entries: impl IntoIterator<Item = (K, V)>) -> Rc<Self>
```

Creates a dictionary with the given entries.

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

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

### items

```rust
fn items(self: &Self) -> &FerroDictionary<K, V>
```

The typed dictionary.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- `PartialEq`
- [`INotifyCollectionChanged`](/docs/0.5.0/api/ferroui-base/data/model/use-inotifycollectionchanged/)
- [`INotifyPropertyChanged`](/docs/0.5.0/api/ferroui-base/data/model/use-inotifypropertychanged/)
- [`IBindableIndexer`](/docs/0.5.0/api/ferroui-base/data/model/trait-ibindableindexer/)

## Availability

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