reactive_graph_std_logical_model/component/
logical_gate.rs

1use crate::NAMESPACE_LOGICAL;
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::ResultBoolean;
6
7properties!(LogicalGateProperties, (LHS, "lhs", false), (RHS, "rhs", false));
8
9component_ty!(COMPONENT_LOGICAL_GATE, NAMESPACE_LOGICAL, COMPONENT_NAME_LOGICAL_GATE, "logical_gate");
10
11entity_model!(
12    LogicalGate,
13    set lhs bool,
14    set rhs bool
15);
16impl ResultBoolean for LogicalGate {}