def inverse_checked
bendvy-ecs-core@0.1.0.3 · execution_relation_access.bend:52
import bendvy-ecs-core@0.1.0.3/execution_relation_access.bend as ExecutionRelationAccess
import Base
import bendvy-ecs-core@0.1.0.3/world.bend as W
import bendvy-ecs-core@0.1.0.3/relation_types.bend as T
import bendvy-ecs-core@0.1.0.3/execution_relation_store.bend as Store
import bendvy-ecs-core@0.1.0.3/execution_state.bend as State
52def inverse_checked(~S:Data,~descriptor:T.Descriptor<S>,~C:Type,~R:Type,~view:State.Scope<S,C,R> -> State.Scope<S,C,R> & Store.View<S,descriptor>,valid:Bool,expected:U32,scope:State.Scope<S,C,R>,target:W.Handle<S>) -> State.Scope<S,C,R> & Lookup<List<&2,W.Handle<S>>>:
53 match valid:
54 case False{}:(scope,MissingEntity{})
55 case True{}:inverse_returned(~S,~descriptor,~State.Scope<S,C,R>,expected,target,view(scope))