# BindingExpression

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

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

```rust
struct BindingExpression
```

A binding expression which accepts and produces (possibly boxed) untyped
values: a source, a path of expression nodes read from it, and the
conversion of the result to the target.

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

## Members

- [`ignore_own_target_changes`](#function-ignore_own_target_changes)
- [`source_type`](#function-source_type)
- [`converter`](#function-converter)
- [`converter_culture`](#function-converter_culture)
- [`converter_parameter`](#function-converter_parameter)
- [`fallback_value`](#function-fallback_value)
- [`mode`](#function-mode)
- [`string_format`](#function-string_format)
- [`target_null_value`](#function-target_null_value)
- [`delay`](#function-delay)
- [`update_source_trigger`](#function-update_source_trigger)
- [`error_type`](#function-error_type)
- [`to_observable`](#function-to_observable)

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

### ignore_own_target_changes

```rust
fn ignore_own_target_changes(self: &Self)
```

A `TwoWay` or `OneWayToSource` expression does not write back to its source a change of
its target that it makes itself, when it publishes a value: the rule of WinUI's
`{x:Bind}`, whose compiled update of a target does not run the two-way listener of that
target. A `{Binding}` writes such a change back (through `ConvertBack` with a converter),
as upstream does.

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

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

### source_type

```rust
fn source_type(self: &Self) -> Option<ValueType>
```

The type of the value accepted by the binding source, if it can be
written.

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

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

### converter

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



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

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

### converter_culture

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

The culture in which the converter is evaluated: the converter
culture of the binding, or the current culture when it names none.

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

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

### converter_parameter

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



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

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

### fallback_value

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

The fallback value; the unset marker if there is none.

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

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

### mode

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



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

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

### string_format

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



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

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

### target_null_value

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

The target null value; the unset marker if there is none.

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

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

### delay

```rust
fn delay(self: &Self) -> Duration
```

The amount of time to wait before updating the binding source after
the value on the target changes.

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

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

### update_source_trigger

```rust
fn update_source_trigger(self: &Self) -> UpdateSourceTrigger
```



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

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

### error_type

```rust
fn error_type(self: &Self) -> BindingErrorType
```

The current error state of the binding expression.

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

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

### to_observable

```rust
fn to_observable(self: &Rc<Self>, target: Option<&FerroObject>) -> Rc<ObservableSink>
```

Produces an observable subject over the expression, see
`ObservableSink`.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`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`
- [`UntypedBindingExpression`](/docs/0.5.0/api/ferroui-base/data/core/trait-untypedbindingexpression/)
- [`IDisposable`](/docs/0.5.0/api/ferroui-base/reactive/use-idisposable/)
- [`BindingExpressionBase`](/docs/0.5.0/api/ferroui-base/data/trait-bindingexpressionbase/)
- `Drop`

## Availability

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