ordinary_optional_resource.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.7/ordinary_optional_resource.bend as Ordinary_optional_resource
7 imports
import Base import ./ordinary_schema.bend as Schema import ./owner_product.bend as Product import ./world.bend as W import ./inspector.bend as I import ./check.bend as K import ./capabilities.bend as Cap
Types
type Slot source · line 11 · raw
@-S:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_schema.Resource<S, P> -> Type
Storage absence is distinct from an optional value of a present resource. Identity still names P; the physical field holds its optional affine owner.
Missing@-S:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_schema.Resource<S, P> -> Slot<S, P, identity>
Present@-S:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_schema.Resource<S, P> -> @owner:P -> Slot<S, P, identity>
type Declaration source · line 14 · raw
@-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_schema.Resource<S, P> -> @-lens:0x7e321819d0ff210531780719c7674cef/owner_product.Lens<R, Slot<S, P, identity>, Rest> -> @-view:(@_:P -> Pair(P, V)) -> Data
Declaration@-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_schema.Resource<S, P> -> @-lens:0x7e321819d0ff210531780719c7674cef/owner_product.Lens<R, Slot<S, P, identity>, Rest> -> @-view:(@_:P -> Pair(P, V)) -> Declaration<S, R, P, Rest, V, identity, lens, view>
Templates
template viewed source · line 16 · raw
@-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_schema.Resource<S, P> -> @-lens:0x7e321819d0ff210531780719c7674cef/owner_product.Lens<R, Slot<S, P, identity>, Rest> -> @rest:Rest -> @result:Pair(P, V) -> Pair(R, Maybe<&2, V>)
template selected source · line 19 · raw
@-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_schema.Resource<S, P> -> @-lens:0x7e321819d0ff210531780719c7674cef/owner_product.Lens<R, Slot<S, P, identity>, Rest> -> @-view:(@_:P -> Pair(P, V)) -> @result:Pair(Rest, Slot<S, P, identity>) -> Pair(R, Maybe<&2, V>)
template project source · line 23 · raw
@-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_schema.Resource<S, P> -> @-lens:0x7e321819d0ff210531780719c7674cef/owner_product.Lens<R, Slot<S, P, identity>, Rest> -> @-view:(@_:P -> Pair(P, V)) -> @resource:R -> Pair(R, Maybe<&2, V>)
template observe source · line 25 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_schema.Resource<S, P> -> @-lens:0x7e321819d0ff210531780719c7674cef/owner_product.Lens<R, Slot<S, P, identity>, Rest> -> @-view:(@_:P -> Pair(P, V)) -> @-declaration:Declaration<S, R, P, Rest, V, identity, lens, view> -> @world:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Maybe<&2, V>)
template inspect source · line 27 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_schema.Resource<S, P> -> @-lens:0x7e321819d0ff210531780719c7674cef/owner_product.Lens<R, Slot<S, P, identity>, Rest> -> @-view:(@_:P -> Pair(P, V)) -> @-declaration:Declaration<S, R, P, Rest, V, identity, lens, view> -> 0x7e321819d0ff210531780719c7674cef/capabilities.ValueRead<0x7e321819d0ff210531780719c7674cef/inspector.Frame<S, C, R, E>, Maybe<&2, V>>
template condition source · line 29 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_schema.Resource<S, P> -> @-lens:0x7e321819d0ff210531780719c7674cef/owner_product.Lens<R, Slot<S, P, identity>, Rest> -> @-view:(@_:P -> Pair(P, V)) -> @-declaration:Declaration<S, R, P, Rest, V, identity, lens, view> -> 0x7e321819d0ff210531780719c7674cef/capabilities.ValueRead<0x7e321819d0ff210531780719c7674cef/check.Frame<S, C, R, E>, Maybe<&2, V>>
template slot_available source · line 32 · raw
@-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_schema.Resource<S, P> -> @-lens:0x7e321819d0ff210531780719c7674cef/owner_product.Lens<R, Slot<S, P, identity>, Rest> -> @result:Pair(Rest, Slot<S, P, identity>) -> Pair(R, List<&2, String>)
Preflight examines only the slot; it must not invoke the value presenter.
template availability source · line 36 · raw
@-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_schema.Resource<S, P> -> @-lens:0x7e321819d0ff210531780719c7674cef/owner_product.Lens<R, Slot<S, P, identity>, Rest> -> @resource:R -> Pair(R, List<&2, String>)
template required source · line 38 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_schema.Resource<S, P> -> @-lens:0x7e321819d0ff210531780719c7674cef/owner_product.Lens<R, Slot<S, P, identity>, Rest> -> @-view:(@_:P -> Pair(P, V)) -> @-declaration:Declaration<S, R, P, Rest, V, identity, lens, view> -> @world:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, List<&2, String>)