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.
Store@-S:Data -> @namespace:U32 -> @members:List<&2, 0x704c77730661eff4309838fc738ef615/lifetime_scope.Member> -> Store<S>
type View source · line 12 · raw
@-S:Data -> Data
View@-S:Data -> @namespace:U32 -> @members:List<&2, 0x704c77730661eff4309838fc738ef615/lifetime_scope.Member> -> View<S>
type Refusal source · line 14 · raw
Data
NamespaceMismatchRefusal
MissingEntityRefusal
type Assignment source · line 17 · raw
@-S:Data -> Data
Assigned@-S:Data -> @scope:0x704c77730661eff4309838fc738ef615/lifetime_scope.Scope<S> -> @handle:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Assignment<S>
AssignmentRefused@-S:Data -> @scope:0x704c77730661eff4309838fc738ef615/lifetime_scope.Scope<S> -> @handle:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> @reason:Refusal -> Assignment<S>
type Snapshot source · line 36 · raw
@-S:Data -> Data
Selected@-S:Data -> @scope:0x704c77730661eff4309838fc738ef615/lifetime_scope.Scope<S> -> @members:List<&2, 0x704c77730661eff4309838fc738ef615/entity_key.Key> -> Snapshot<S>
SnapshotRefused@-S:Data -> @scope:0x704c77730661eff4309838fc738ef615/lifetime_scope.Scope<S> -> Snapshot<S>
type Request source · line 51 · raw
@-S:Data -> Data
Assign@-S:Data -> @scope:0x704c77730661eff4309838fc738ef615/lifetime_scope.Scope<S> -> @handle:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Request<S>
Select@-S:Data -> @scope:0x704c77730661eff4309838fc738ef615/lifetime_scope.Scope<S> -> Request<S>
Forget@-S:Data -> @handle:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Request<S>
Inspect@-S:Data -> Request<S>
type Outcome source · line 56 · raw
@-S:Data -> Data
Assignment@-S:Data -> @result:Assignment<S> -> Outcome<S>
Selection@-S:Data -> @result:Snapshot<S> -> Outcome<S>
Forgotten@-S:Data -> @handle:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Outcome<S>
Inspected@-S:Data -> @namespace:U32 -> Outcome<S>
Refused@-S:Data -> @request:Request<S> -> Outcome<S>
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>))