# ReactiveBinding

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/binding/bindings/struct-reactivebinding/

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

```rust
struct ReactiveBinding<V: IViewFor + ?Sized, T>
```

The binding the view-first bindings return (`ReactiveBinding<TView, TValue>`): the view, the
values the binding moves and its direction, and the subscription that disposing it ends.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/bindings/reactive_binding.rs#L12)

## Members

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

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

### new

```rust
fn new(view: Rc<V>, changed: Rc<dyn IObservable<T>>, direction: BindingDirection, subscription: Rc<dyn IDisposable>) -> Rc<Self>
```

The binding of `view`, whose values are `changed`, in `direction`; disposing it disposes
`subscription` (`ReactiveBinding(TView, IObservable<TValue>, BindingDirection, IDisposable)`).

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`IDisposable`](/docs/0.5.0/api/ferroui-base/reactive/use-idisposable/)
- [`IReactiveBinding<V, T>`](/docs/0.5.0/api/ferroui-reactiveui/binding/interfaces/trait-ireactivebinding/)
- `Debug`

## Availability

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