# IReactiveBinding

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/binding/interfaces/trait-ireactivebinding/

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

```rust
trait IReactiveBinding<V: IViewFor + ?Sized, T>: IDisposable
```

A binding between a view and a view model property (`IReactiveBinding<TView, TValue>`):
disposing it disconnects the binding.

The bindings of `PropertyBindingMixins` return it as
`Rc<dyn IReactiveBinding<V, T>>`, which coerces to `Rc<dyn IDisposable>`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/interfaces/i_reactive_binding.rs#L13)

## Members

- [`view_model_expression`](#function-view_model_expression)
- [`view`](#function-view)
- [`view_expression`](#function-view_expression)
- [`changed`](#function-changed)
- [`direction`](#function-direction)

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

### view_model_expression

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

The text of the view model property that is bound, or `None` when the binding carries none
(`ViewModelExpression`). The bindings of the port carry none, as upstream's generated ones.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/interfaces/i_reactive_binding.rs#L16)

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

### view

```rust
fn view(self: &Self) -> &Rc<V>
```

The view that is bound (`View`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/interfaces/i_reactive_binding.rs#L19)

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

### view_expression

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

The text of the view property that is bound, or `None` when the binding carries none
(`ViewExpression`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/interfaces/i_reactive_binding.rs#L23)

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

### changed

```rust
fn changed(self: &Self) -> Rc<dyn IObservable<T>>
```

The values the binding moves (`Changed`): the values written to the view for a one-way
binding, the `BindingChange`s for a two-way one.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/interfaces/i_reactive_binding.rs#L27)

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

### direction

```rust
fn direction(self: &Self) -> BindingDirection
```

The direction of the binding (`Direction`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/interfaces/i_reactive_binding.rs#L30)

## Trait implementations

- [`IReactiveBinding<V, T>`](/docs/0.5.0/api/ferroui-reactiveui/binding/interfaces/trait-ireactivebinding/)

## Availability

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