reactive_graph_std_numeric_model/component/
numeric_operation.rs

1use crate::NAMESPACE_NUMERIC;
2use reactive_graph_graph::component_ty;
3use reactive_graph_graph::properties;
4use reactive_graph_reactive_model_api::entity_model;
5use reactive_graph_std_result_model::ResultNumberF64;
6use reactive_graph_std_result_model::ResultNumberI64;
7
8properties!(NumericOperationProperties, (LHS, "lhs", 0.0));
9
10component_ty!(COMPONENT_NUMERIC_OPERATION, NAMESPACE_NUMERIC, COMPONENT_NAME_NUMERIC_OPERATION, "numeric_operation");
11
12entity_model!(NumericOperationF64, get result f64, set lhs f64);
13impl ResultNumberF64 for NumericOperationF64 {}
14
15entity_model!(NumericOperationI64, get result i64, set lhs i64);
16impl ResultNumberI64 for NumericOperationI64 {}