def grant_composed

bendvy-ecs-core@0.1.0.4 · inspector_query.bend:212

import bendvy-ecs-core@0.1.0.4/inspector_query.bend as InspectorQuery
import Base
import inspector_query_projection.bend as Q

212# Trusted constructor combining matching WorldRead and declared selection.
213# Target lookup validates before matching/projecting; enumeration uses the
214# supplied live-handle route. Callbacks must preserve owner correspondence.
215# Source-level composition: ordinary-query-observable.inspect_query.
216def grant_composed(~H:Type,~S:Data,~V:Data,~selection:Q.DeclaredSelection<H,S,V>,~world:WorldRead<H,S>) -> ComposedReadQuery<H,S,V>:
217  ComposedReadQuery{owner => composed_enumerate(~H,~S,~V,~selection,~world,owner),owner => target => composed_lookup(~H,~S,~V,~selection,~world,owner,target)}

Uses (5)

Used by (3)