~/bend-docscommunity

row_column.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.1/row_column.bend as Row_column

4 imports
import Base
import ./change_tick.bend as Tick
import column.bend as Col
import lifecycle.bend as L

Types

type Cold source · line 8 · raw

@-S:Data -> @-C:Type -> Type

The captured ID and actual column travel with the owner in one affine token. No attach API accepts a different column or an external target ID.

type Cell source · line 11 · raw

@-S:Data -> @-C:Type -> Type

type Projected source · line 14 · raw

@-S:Data -> @-C:Type -> @-V:Data -> Type

type Replacement source · line 53 · raw

@-S:Data -> @-C:Type -> Type

Templates

template cold_column source · line 18 · raw

@-S:Data -> @-C:Type -> @cold:Cold<S, C> -> 0xf435da9e535b3846d643dad16580e35f/column.Column<S, C>

template detached source · line 22 · raw

@-S:Data -> @-C:Type -> @+id:U32 -> @stamp:0xf435da9e535b3846d643dad16580e35f/lifecycle.Stamp -> @result:0xf435da9e535b3846d643dad16580e35f/column.SwapOutcome<S, C> -> Cell<S, C>

template detach_stamped source · line 26 · raw

@-S:Data -> @-C:Type -> @+id:U32 -> @result:Pair(0xf435da9e535b3846d643dad16580e35f/column.Column<S, C>, 0xf435da9e535b3846d643dad16580e35f/lifecycle.Stamp) -> Cell<S, C>

template detach source · line 29 · raw

@-S:Data -> @-C:Type -> @column:0xf435da9e535b3846d643dad16580e35f/column.Column<S, C> -> @+id:U32 -> Cell<S, C>

template projected_owner source · line 32 · raw

@-S:Data -> @-C:Type -> @-V:Data -> @+id:U32 -> @stamp:0xf435da9e535b3846d643dad16580e35f/lifecycle.Stamp -> @dirty:Bool -> @cold:Cold<S, C> -> @result:Pair(C, V) -> Projected<S, C, V>

template project source · line 35 · raw

@-S:Data -> @-C:Type -> @-V:Data -> @-project:(@_:C -> Pair(C, V)) -> @cell:Cell<S, C> -> Projected<S, C, V>

template attach_marked source · line 43 · raw

@-S:Data -> @-C:Type -> @+id:U32 -> @stamp:0xf435da9e535b3846d643dad16580e35f/lifecycle.Stamp -> @dirty:Bool -> @result:0xf435da9e535b3846d643dad16580e35f/column.SwapOutcome<S, C> -> 0xf435da9e535b3846d643dad16580e35f/column.SwapOutcome<S, C>

Even a malformed token's attachment refusal returns its actual incoming owner. Trusted row adapters must handle this outcome before exposing a World.

template attach source · line 48 · raw

@-S:Data -> @-C:Type -> @cell:Cell<S, C> -> 0xf435da9e535b3846d643dad16580e35f/column.SwapOutcome<S, C>

template replacement_present source · line 56 · raw

@-S:Data -> @-C:Type -> @+id:U32 -> @+stamp:0xf435da9e535b3846d643dad16580e35f/lifecycle.Stamp -> @cold:Cold<S, C> -> @incoming:C -> @+tick:0xf435da9e535b3846d643dad16580e35f/change_tick.Tick -> @observed:Pair(Maybe<&1, C>, Bool) -> Replacement<S, C>

template owner_present source · line 59 · raw

@-C:Type -> @owner:Maybe<&1, C> -> Pair(Maybe<&1, C>, Bool)

template replace source · line 64 · raw

@-S:Data -> @-C:Type -> @cell:Cell<S, C> -> @incoming:C -> @+tick:0xf435da9e535b3846d643dad16580e35f/change_tick.Tick -> Replacement<S, C>

Caller validates entity/clock first and journals returned previous+stamp now.