# MultiBinding

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

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

```rust
struct MultiBinding
```

A binding that aggregates multiple bindings through a converter.

A binding is a mutable reference object: it is created with
`MultiBinding::new`, configured property by property (or with the
chaining `with_*` forms) and shared as `Rc<MultiBinding>`, which
converts to `Rc<dyn BindingBase>`. Handles compare by identity. The
properties, and the contents of the collection of child bindings, are
read when the binding is instantiated on a target: changing them
afterwards affects later instances only.

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

## Members

- [`snapshot_for_reload`](#function-snapshot_for_reload)
- [`bindings`](#function-bindings)
- [`set_bindings`](#function-set_bindings)
- [`with_bindings_list`](#function-with_bindings_list)
- [`converter`](#function-converter)
- [`set_converter`](#function-set_converter)
- [`with_converter_value`](#function-with_converter_value)
- [`converter_culture`](#function-converter_culture)
- [`set_converter_culture`](#function-set_converter_culture)
- [`with_converter_culture`](#function-with_converter_culture)
- [`converter_parameter`](#function-converter_parameter)
- [`set_converter_parameter`](#function-set_converter_parameter)
- [`with_converter_parameter`](#function-with_converter_parameter)
- [`fallback_value`](#function-fallback_value)
- [`set_fallback_value`](#function-set_fallback_value)
- [`with_fallback_value`](#function-with_fallback_value)
- [`mode`](#function-mode)
- [`set_mode`](#function-set_mode)
- [`with_mode`](#function-with_mode)
- [`priority`](#function-priority)
- [`set_priority`](#function-set_priority)
- [`with_priority`](#function-with_priority)
- [`relative_source`](#function-relative_source)
- [`set_relative_source`](#function-set_relative_source)
- [`with_relative_source`](#function-with_relative_source)
- [`string_format`](#function-string_format)
- [`set_string_format`](#function-set_string_format)
- [`with_string_format`](#function-with_string_format)
- [`target_null_value`](#function-target_null_value)
- [`set_target_null_value`](#function-set_target_null_value)
- [`with_target_null_value`](#function-with_target_null_value)
- [`new`](#function-new)
- [`with_bindings`](#function-with_bindings)
- [`with_converter`](#function-with_converter)

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

### snapshot_for_reload

```rust
fn snapshot_for_reload(self: &Self) -> ::std::rc::Rc<Self>
```

An independent description for a development transaction. Keep it
only through preparation: explicit sources can own application objects.

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

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

### bindings

```rust
fn bindings(self: &Self) -> FerroList<Rc<dyn BindingBase>>
```

The collection of child bindings. The list is a shared handle:
children are added to the list the getter returns.

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

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

### set_bindings

```rust
fn set_bindings(self: &Self, value: FerroList<Rc<dyn BindingBase>>)
```



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

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

### with_bindings_list

```rust
fn with_bindings_list(self: ::std::rc::Rc<Self>, value: FerroList<Rc<dyn BindingBase>>) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

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

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

### converter

```rust
fn converter(self: &Self) -> Option<Rc<dyn IMultiValueConverter>>
```

The converter to use.

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

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

### set_converter

```rust
fn set_converter(self: &Self, value: Option<Rc<dyn IMultiValueConverter>>)
```



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

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

### with_converter_value

```rust
fn with_converter_value(self: ::std::rc::Rc<Self>, value: Option<Rc<dyn IMultiValueConverter>>) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

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

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

### converter_culture

```rust
fn converter_culture(self: &Self) -> Option<CultureInfo>
```

The culture in which to evaluate the converter. `None` (the
default) uses the current culture.

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

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

### set_converter_culture

```rust
fn set_converter_culture(self: &Self, value: Option<CultureInfo>)
```



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

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

### with_converter_culture

```rust
fn with_converter_culture(self: ::std::rc::Rc<Self>, value: Option<CultureInfo>) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

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

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

### converter_parameter

```rust
fn converter_parameter(self: &Self) -> Option<BoxedValue>
```

A parameter to pass to the converter.

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

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

### set_converter_parameter

```rust
fn set_converter_parameter(self: &Self, value: Option<BoxedValue>)
```



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

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

### with_converter_parameter

```rust
fn with_converter_parameter(self: ::std::rc::Rc<Self>, value: Option<BoxedValue>) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

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

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

### fallback_value

```rust
fn fallback_value(self: &Self) -> Option<BoxedValue>
```

The value to use when the binding is unable to produce a value;
the unset marker for none.

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

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

### set_fallback_value

```rust
fn set_fallback_value(self: &Self, value: Option<BoxedValue>)
```



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

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

### with_fallback_value

```rust
fn with_fallback_value(self: ::std::rc::Rc<Self>, value: Option<BoxedValue>) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

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

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

### mode

```rust
fn mode(self: &Self) -> BindingMode
```

The binding mode. Only one-time and one-way are supported.

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

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

### set_mode

```rust
fn set_mode(self: &Self, value: BindingMode)
```



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

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

### with_mode

```rust
fn with_mode(self: ::std::rc::Rc<Self>, value: BindingMode) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

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

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

### priority

```rust
fn priority(self: &Self) -> BindingPriority
```

The binding priority.

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

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

### set_priority

```rust
fn set_priority(self: &Self, value: BindingPriority)
```



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

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

### with_priority

```rust
fn with_priority(self: ::std::rc::Rc<Self>, value: BindingPriority) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

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

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

### relative_source

```rust
fn relative_source(self: &Self) -> Option<Rc<RelativeSource>>
```

The relative source for the binding.

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

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

### set_relative_source

```rust
fn set_relative_source(self: &Self, value: Option<Rc<RelativeSource>>)
```



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

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

### with_relative_source

```rust
fn with_relative_source(self: ::std::rc::Rc<Self>, value: Option<Rc<RelativeSource>>) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

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

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

### string_format

```rust
fn string_format(self: &Self) -> Option<String>
```

The string format.

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

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

### set_string_format

```rust
fn set_string_format(self: &Self, value: Option<String>)
```



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

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

### with_string_format

```rust
fn with_string_format(self: ::std::rc::Rc<Self>, value: Option<String>) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

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

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

### target_null_value

```rust
fn target_null_value(self: &Self) -> Option<BoxedValue>
```

The value to use when the binding produces null; the unset marker
for none.

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

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

### set_target_null_value

```rust
fn set_target_null_value(self: &Self, value: Option<BoxedValue>)
```



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

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

### with_target_null_value

```rust
fn with_target_null_value(self: ::std::rc::Rc<Self>, value: Option<BoxedValue>) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

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

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

### new

```rust
fn new() -> Rc<Self>
```

Creates a multi-binding without child bindings.

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

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

### with_bindings

```rust
fn with_bindings(self: Rc<Self>, bindings: Vec<Rc<dyn BindingBase>>) -> Rc<Self>
```

The chaining form of adding child bindings: replaces the contents of
the collection of child bindings.

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

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

### with_converter

```rust
fn with_converter(self: Rc<Self>, converter: Rc<dyn IMultiValueConverter>) -> Rc<Self>
```

The chaining form of `set_converter`, for a
converter.

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

## 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`
- `Default`
- `PartialEq`
- [`BindingBase`](/docs/0.5.0/api/ferroui-base/data/trait-bindingbase/)
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)

## Availability

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