~/bend-docscommunity

execution_lifetime_scope_store.bend checks

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

5 imports
import Base
import ./lifetime_scope.bend as Scope
import ./world.bend as W
import ./entity_allocator.bend as Allocator
import ./entity_key.bend as Key

Types

type Store source · line 10 · raw

@-S:Data -> Type

Canonical resource ownership is separate from component owners and liveness. Bevy ad678262ce53b5d142fe49ee5e08caff6f00ab60 state_scoped.rs queues despawns on state exit. Named namespace-bound scopes are Bend metadata.

type View source · line 12 · raw

@-S:Data -> Data

type Refusal source · line 14 · raw

Data

type Assignment source · line 17 · raw

@-S:Data -> Data

type Snapshot source · line 36 · raw

@-S:Data -> Data

type Request source · line 51 · raw

@-S:Data -> Data

type Outcome source · line 56 · raw

@-S:Data -> Data

Templates

template fresh source · line 20 · raw

@-S:Data -> @namespace:U32 -> Store<S>

template project source · line 22 · raw

@-S:Data -> @store:Store<S> -> Pair(Store<S>, View<S>)

template assigned source · line 25 · raw

@-S:Data -> @scope:0x704c77730661eff4309838fc738ef615/lifetime_scope.Scope<S> -> @handle:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> @namespace:U32 -> @members:List<&2, 0x704c77730661eff4309838fc738ef615/lifetime_scope.Member> -> @result:Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Bool) -> Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Pair(Store<S>, Assignment<S>))

template assign_checked source · line 29 · raw

@-S:Data -> @allowed:Bool -> @allocator:0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator -> @store:Store<S> -> @scope:0x704c77730661eff4309838fc738ef615/lifetime_scope.Scope<S> -> @handle:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Pair(Store<S>, Assignment<S>))

template assign source · line 33 · raw

@-S:Data -> @+actual:U32 -> @allocator:0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator -> @store:Store<S> -> @scope:0x704c77730661eff4309838fc738ef615/lifetime_scope.Scope<S> -> @handle:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Pair(Store<S>, Assignment<S>))

template snapshot_checked source · line 39 · raw

@-S:Data -> @allowed:Bool -> @store:Store<S> -> @scope:0x704c77730661eff4309838fc738ef615/lifetime_scope.Scope<S> -> Pair(Store<S>, Snapshot<S>)

template snapshot source · line 43 · raw

@-S:Data -> @+actual:U32 -> @store:Store<S> -> @scope:0x704c77730661eff4309838fc738ef615/lifetime_scope.Scope<S> -> Pair(Store<S>, Snapshot<S>)

template removed source · line 47 · raw

@-S:Data -> @store:Store<S> -> @key:0x704c77730661eff4309838fc738ef615/entity_key.Key -> Store<S>

Called only after canonical despawn succeeds, using the complete generation key.

template assignment_returned source · line 62 · raw

@-S:Data -> @result:Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Pair(Store<S>, Assignment<S>)) -> Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Pair(Store<S>, Outcome<S>))

template selection_returned source · line 65 · raw

@-S:Data -> @allocator:0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator -> @result:Pair(Store<S>, Snapshot<S>) -> Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Pair(Store<S>, Outcome<S>))

template forgotten source · line 68 · raw

@-S:Data -> @allowed:Bool -> @allocator:0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator -> @store:Store<S> -> @+handle:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Pair(Store<S>, Outcome<S>))

template forget_namespace source · line 72 · raw

@-S:Data -> @+actual:U32 -> @allocator:0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator -> @store:Store<S> -> @handle:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> @namespace:U32 -> Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Pair(Store<S>, Outcome<S>))

template inspected source · line 75 · raw

@-S:Data -> @allocator:0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator -> @store:Store<S> -> Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Pair(Store<S>, Outcome<S>))

template apply source · line 78 · raw

@-S:Data -> @+actual:U32 -> @allocator:0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator -> @store:Store<S> -> @request:Request<S> -> Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Pair(Store<S>, Outcome<S>))