~/bend-docscommunity

ordinary_optional_resource.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.6/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:0x14a72e1c180a5ab1f8a056d43822425c/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.

type Declaration source · line 14 · raw

@-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, P> -> @-lens:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<R, Slot<S, P, identity>, Rest> -> @-view:(@_:P -> Pair(P, V)) -> Data

Templates

template viewed source · line 16 · raw

@-S:Data -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, P> -> @-lens:0x14a72e1c180a5ab1f8a056d43822425c/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:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, P> -> @-lens:0x14a72e1c180a5ab1f8a056d43822425c/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:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, P> -> @-lens:0x14a72e1c180a5ab1f8a056d43822425c/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:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, P> -> @-lens:0x14a72e1c180a5ab1f8a056d43822425c/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:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/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:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, P> -> @-lens:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<R, Slot<S, P, identity>, Rest> -> @-view:(@_:P -> Pair(P, V)) -> @-declaration:Declaration<S, R, P, Rest, V, identity, lens, view> -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.ValueRead<0x14a72e1c180a5ab1f8a056d43822425c/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:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, P> -> @-lens:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<R, Slot<S, P, identity>, Rest> -> @-view:(@_:P -> Pair(P, V)) -> @-declaration:Declaration<S, R, P, Rest, V, identity, lens, view> -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.ValueRead<0x14a72e1c180a5ab1f8a056d43822425c/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:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, P> -> @-lens:0x14a72e1c180a5ab1f8a056d43822425c/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:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, P> -> @-lens:0x14a72e1c180a5ab1f8a056d43822425c/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:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, P> -> @-lens:0x14a72e1c180a5ab1f8a056d43822425c/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:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, List<&2, String>)