def trusted_construction_caps

bendvy-ecs-core@0.1.0.3 · execution_declaration.bend:90

import bendvy-ecs-core@0.1.0.3/execution_declaration.bend as ExecutionDeclaration
import Base
import bendvy-ecs-core@0.1.0.3/execution_state_effect.bend as StateEffect
import bendvy-ecs-core@0.1.0.3/execution_reservation_authority.bend as Effect
import bendvy-ecs-core@0.1.0.3/execution_state.bend as State

90# Trusted static construction projection. Calling this does not admit execution;
91# factories must pattern-match the same Compilation before registration or body.
92def trusted_construction_caps(~S:Data,~WC:Type,~C:Type,~R:Type,~Ops:Data -> (Type -> Type) -> Type -> Type,compilation:Compilation<S,WC,C,R,Ops>) -> Ops(Effect.Granted,StateEffect.Transition(~State.Invocation<S>),State.Scope<S,C,R>):
93  match compilation:
94    case Unsupported{caps,_,_}:caps
95    case Supported{Declaration{caps,_},_}:caps

Uses (6)

Used by (4)