def caps

bendvy-ecs-core@0.1.0.4 · recognized_query_declaration.bend:31

import bendvy-ecs-core@0.1.0.4/recognized_query_declaration.bend as RecognizedQueryDeclaration
import Base
import bendvy-ecs-core@0.1.0.4/internal/compact_operational_frame.bend as F

31# Advanced runner projection: consume the declaration and obtain operations for
32# the compact opaque frame. Application callbacks receive these through their
33# Ops parameter; they should not construct or unwrap a compact frame themselves.
34def caps(~S:Data,~Store:Type,~R:Type,~E:Data,~Ops:Type -> Type,declaration:Declaration<S,Store,R,E,Ops>) -> Ops(F.Frame<S,Store,R,E>):
35  match declaration:
36    case Declaration{_,caps,_}:caps(Unit{})

Uses (3)

Used by (2)