captures.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.1/captures.bend as Captures
3 imports
import Base import ./world.bend as W import ./local.bend as Local
Templates
template register source · line 6 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-L:Type -> @-Args:Type -> @-Error:Data -> @-Out:Type -> @-runner:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:L -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/local.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, L, Error, Out>) -> @world:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @name:String -> @access:List<&2, String> -> @local:L -> 0xf435da9e535b3846d643dad16580e35f/local.Registered<S, C, R, E, L, Args, Error, Out, runner>
Closed runner identity with an actual affine per-instance capture owner.
template run source · line 9 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-L:Type -> @-Args:Type -> @-Error:Data -> @-Out:Type -> @-runner:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:L -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/local.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, L, Error, Out>) -> @instance:0xf435da9e535b3846d643dad16580e35f/local.Instance<S, C, R, E, L, Args, Error, Out, runner> -> @world:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @args:Args -> 0xf435da9e535b3846d643dad16580e35f/local.Run<S, C, R, E, L, Args, Error, Out, runner>
template skip source · line 12 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-L:Type -> @-Args:Type -> @-Error:Data -> @-Out:Type -> @-runner:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:L -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/local.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, L, Error, Out>) -> @instance:0xf435da9e535b3846d643dad16580e35f/local.Instance<S, C, R, E, L, Args, Error, Out, runner> -> 0xf435da9e535b3846d643dad16580e35f/local.Instance<S, C, R, E, L, Args, Error, Out, runner>
template observe source · line 15 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-L:Type -> @-Args:Type -> @-Error:Data -> @-Out:Type -> @-runner:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:L -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/local.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, L, Error, Out>) -> @-V:Data -> @-project:(@_:L -> Pair(L, V)) -> @instance:0xf435da9e535b3846d643dad16580e35f/local.Instance<S, C, R, E, L, Args, Error, Out, runner> -> Pair(0xf435da9e535b3846d643dad16580e35f/local.Instance<S, C, R, E, L, Args, Error, Out, runner>, V)
template identity source · line 18 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-L:Type -> @-Args:Type -> @-Error:Data -> @-Out:Type -> @-runner:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:L -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/local.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, L, Error, Out>) -> @instance:0xf435da9e535b3846d643dad16580e35f/local.Instance<S, C, R, E, L, Args, Error, Out, runner> -> Pair(0xf435da9e535b3846d643dad16580e35f/local.Instance<S, C, R, E, L, Args, Error, Out, runner>, U32)
template returned source · line 21 · raw
@-L:Type -> @owner:L -> L
template unregister source · line 25 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-L:Type -> @-Args:Type -> @-Error:Data -> @-Out:Type -> @-runner:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:L -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/local.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, L, Error, Out>) -> @instance:0xf435da9e535b3846d643dad16580e35f/local.Instance<S, C, R, E, L, Args, Error, Out, runner> -> @world:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> 0xf435da9e535b3846d643dad16580e35f/local.Disposal<S, C, R, E, L, Args, Error, Out, runner, L>
Unregister invalidates the registration and returns the capture unchanged.