IReactiveBinding
trait · ferroui-reactiveui · v0.5.0
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>.
Members
view_model_expression
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.
view
fn view(self: &Self) -> &Rc<V>
The view that is bound (View).
view_expression
fn view_expression(self: &Self) -> Option<&str>
The text of the view property that is bound, or None when the binding carries none
(ViewExpression).
changed
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 BindingChanges for a two-way one.
direction
fn direction(self: &Self) -> BindingDirection
The direction of the binding (Direction).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.