resource_field_binding.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.6/resource_field_binding.bend as Resource_field_binding
4 imports
import Base import ./ordinary_schema.bend as Schema import ./schema_fragments.bend as Fragment import ./owner_product.bend as Product
Types
type Branch source · line 6 · raw
@-L:Data -> @-R:Data -> Data
Ordinary declaration tree. Physical ownership and index shape are both typed.
Branch@-L:Data -> @-R:Data -> @left:L -> @right:R -> Branch<L, R>
type Built source · line 8 · raw
@-S:Data -> @-R:Type -> @-Index:Data -> Data
Built@-S:Data -> @-R:Type -> @-Index:Data -> @entries:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/schema_fragments.Entry<S>> -> @index:Index -> Built<S, R, Index>
type Cursor source · line 27 · raw
@-S:Data -> @-W:Type -> @-P:Type -> @-Rest:Type -> @-I:Data -> @-lens:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<W, P, Rest> -> Data
Erased canonical lens; no closure/payload is retained in the runtime cursor.
Cursor@-S:Data -> @-W:Type -> @-P:Type -> @-Rest:Type -> @-I:Data -> @-lens:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<W, P, Rest> -> @index:I -> Cursor<S, W, P, Rest, I, lens>
type Binding source · line 47 · raw
@-S:Data -> @-W:Type -> @-P:Type -> @-Rest:Type -> @-lens:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<W, P, Rest> -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, P> -> Data
Identity and canonical physical path are compile-time indices of the binding. Raw constructors remain trusted; application systems receive opaque grants.
Binding@-S:Data -> @-W:Type -> @-P:Type -> @-Rest:Type -> @-lens:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<W, P, Rest> -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, P> -> Binding<S, W, P, Rest, lens, identity>
Templates
template leaf source · line 10 · raw
@-S:Data -> @-P:Type -> @+identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, P> -> Built<S, P, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, P>>
template joined source · line 12 · raw
@-S:Data -> @-L:Type -> @-R:Type -> @-LI:Data -> @-RI:Data -> @left:Built<S, L, LI> -> @right:Built<S, R, RI> -> Built<S, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, R>, Branch<Built<S, L, LI>, Built<S, R, RI>>>
template entries source · line 15 · raw
@-S:Data -> @-R:Type -> @-I:Data -> @value:Built<S, R, I> -> List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/schema_fragments.Entry<S>>
template validate source · line 18 · raw
@-S:Data -> @-R:Type -> @-I:Data -> @value:Built<S, R, I> -> 0x14a72e1c180a5ab1f8a056d43822425c/schema_fragments.Validation
template whole_take source · line 20 · raw
@-P:Type -> @value:P -> Pair(Unit, P)
template whole_put source · line 22 · raw
@-P:Type -> @rest:Unit -> @value:P -> P
template whole source · line 24 · raw
@-P:Type -> 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<P, P, Unit>
template root source · line 29 · raw
@-S:Data -> @-R:Type -> @-I:Data -> @value:Built<S, R, I> -> Cursor<S, R, R, Unit, I, whole(R)>
template left_lens source · line 32 · raw
@-W:Type -> @-L:Type -> @-R:Type -> @-Rest:Type -> @-outer:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<W, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, R>, Rest> -> 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<W, L, Pair(Rest, R)>
template right_lens source · line 34 · raw
@-W:Type -> @-L:Type -> @-R:Type -> @-Rest:Type -> @-outer:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<W, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, R>, Rest> -> 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<W, R, Pair(Rest, L)>
template left source · line 36 · raw
@-S:Data -> @-W:Type -> @-L:Type -> @-R:Type -> @-Rest:Type -> @-LI:Data -> @-RI:Data -> @-outer:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<W, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, R>, Rest> -> @value:Cursor<S, W, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, R>, Rest, Branch<Built<S, L, LI>, Built<S, R, RI>>, outer> -> Cursor<S, W, L, Pair(Rest, R), LI, left_lens(W, L, R, Rest, outer)>
template right source · line 39 · raw
@-S:Data -> @-W:Type -> @-L:Type -> @-R:Type -> @-Rest:Type -> @-LI:Data -> @-RI:Data -> @-outer:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<W, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, R>, Rest> -> @value:Cursor<S, W, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, R>, Rest, Branch<Built<S, L, LI>, Built<S, R, RI>>, outer> -> Cursor<S, W, R, Pair(Rest, L), RI, right_lens(W, L, R, Rest, outer)>
template identity source · line 42 · raw
@-S:Data -> @-W:Type -> @-P:Type -> @-Rest:Type -> @-lens:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<W, P, Rest> -> @value:Cursor<S, W, P, Rest, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, P>, lens> -> 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, P>
template bind source · line 49 · raw
@-S:Data -> @-W:Type -> @-P:Type -> @-Rest:Type -> @-lens:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<W, P, Rest> -> @-cursor:Cursor<S, W, P, Rest, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, P>, lens> -> Binding<S, W, P, Rest, lens, identity(S, W, P, Rest, lens, cursor)>