fn ui_action<Action, Parameter>(
        model: &Rc<Model>,
        action: Action,
        invalidate: &frp::Source<()>,
    ) -> impl Fn(&Parameter, &bool)
    where
        Action: Fn(&Model, &Parameter) -> FallibleResult + 'static,
    {
        f!([model,invalidate] (parameter,is_hold) {
            if !*is_hold {
                Self::execute_fallible_ui_action(&model, &invalidate, || action(&*model,parameter))
            }
        })
    }
/// Convert a function being a method of GraphEditorIntegratedWithControllerModel to a closure
/// suitable for connecting to GraphEditor frp network. Returned lambda takes `Parameter` and a
/// bool, which indicates if this action is currently on hold (e.g. due to performing
/// invalidation).
Convert a function being a method of GraphEditorIntegratedWithControllerModel to a closure
suitable for connecting to GraphEditor frp network. Returned lambda takes `Parameter` and a
bool, which indicates if this action is currently on hold .
Convert a function being a method of GraphEditorIntegratedWithControllerModel to a closure suitable for connecting to GraphEditor frp network . Returned lambda takes ` Parameter ` and a bool which indicates if this action is currently on hold .
fn ui_action<Action, Parameter>(
        model: &Rc<Model>,
        action: Action,
        invalidate: &frp::Source<()>,
    ) -> impl Fn(&Parameter, &bool)
    where
        Action: Fn(&Model, &Parameter) -> FallibleResult + 'static,
    {
        f!([model,invalidate] (parameter,is_hold) {
            if !*is_hold {
                Self::execute_fallible_ui_action(&model, &invalidate, || action(&*model,parameter))
            }
        })
    }
fn ui_action < Action , Parameter > ( model : & Rc < Model > , action : Action , invalidate : & frp :: Source < ( ) > , ) -> impl Fn ( & Parameter , & bool ) where Action : Fn ( & Model , & Parameter ) -> FallibleResult + ' static , { f ! ( [ model invalidate ] ( parameter is_hold ) { if is_hold { Self execute_fallible_ui_action ( model invalidate action ( model parameter ) ) } } ) }
Convert a function being a method of GraphEditorIntegratedWithControllerModel to a closure
suitable for connecting to GraphEditor frp network.
Convert a function being a method of GraphEditorIntegratedWithControllerModel to a closure suitable for connecting to GraphEditor frp network .
model
&Rc<Model>
action
Action
invalidate
&frp::Source<()>
model
&Rc<Model>
action
Action
invalidate
&frp::Source<()>