~/bend-docscommunity

resource_field.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.3/resource_field.bend as Resource_field

3 imports
import Base
import ./owner_product.bend as Product
import ./world.bend as W

Templates

template viewed source · line 5 · raw

@-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<R, P, Rest> -> @rest:Rest -> @result:Pair(P, V) -> Pair(R, V)

Canonical product lenses preserve affine siblings during selected-field operations.

template taken source · line 8 · raw

@-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<R, P, Rest> -> @-view:(@_:P -> Pair(P, V)) -> @result:Pair(Rest, P) -> Pair(R, V)

template project source · line 11 · raw

@-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<R, P, Rest> -> @-view:(@_:P -> Pair(P, V)) -> @resource:R -> Pair(R, V)

template replacing source · line 13 · raw

@-R:Type -> @-P:Type -> @-Rest:Type -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<R, P, Rest> -> @replacement:P -> @result:Pair(Rest, P) -> Pair(R, P)

template replace source · line 16 · raw

@-R:Type -> @-P:Type -> @-Rest:Type -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<R, P, Rest> -> @replacement:P -> @resource:R -> Pair(R, P)

template replace_world source · line 20 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Rest:Type -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<R, P, Rest> -> @replacement:P -> @world:0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E> -> Pair(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, P)

Runtime replacement owners cannot be captured in an erased projector template. Trusted engine boundary threads the same World fields through the core join.

template restored source · line 23 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @result:Pair(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, P) -> 0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>

template restore source · line 26 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Rest:Type -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<R, P, Rest> -> @old:P -> @world:0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E> -> 0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>