def result

bendvy-ecs-core@0.1.0.3 · execution_relation_interpreter.bend:19

import bendvy-ecs-core@0.1.0.3/execution_relation_interpreter.bend as ExecutionRelationInterpreter
import Base
import bendvy-ecs-core@0.1.0.3/relation_types.bend as T
import bendvy-ecs-core@0.1.0.3/execution_relation_operation.bend as O

19def result(~S:Data,operation:O.Operation<S>,checked:T.CoreResult<S>) -> O.Outcome<S>:
20  match checked:
21    case T.CoreResult{graph,None{}}:O.Applied{graph,operation}
22    case T.CoreResult{graph,Some{error}}:O.Refused{graph,operation,O.RelationError{error}}

Uses (5)

Used by (2)