pub fn evaluate_expr_with_shared(
expr: &Expr,
model: &dyn UiBindable,
shared: Option<&dyn UiBindable>,
) -> Result<BindingValue, BindingError>Expand description
Evaluate an expression with access to both local model and shared context
This is the preferred method when shared state bindings ({shared.field}) are used.
Falls back to model-only evaluation for expressions that don’t use shared state.
§Arguments
expr- The expression to evaluatemodel- The local view model implementingUiBindableshared- Optional shared context implementingUiBindable
§Returns
The evaluated BindingValue or an error if evaluation fails.