FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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>.

    View source

    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.

    Source

    view

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

    The view that is bound (View).

    Source

    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).

    Source

    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.

    Source

    direction

    fn direction(self: &Self) -> BindingDirection
    

    The direction of the binding (Direction).

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.