def tx_set_displayed

bendvy-ecs-core@0.1.0.4 · component.bend:377

import bendvy-ecs-core@0.1.0.4/component.bend as Component
import Base
import column.bend as Col
import world.bend as W
import transaction.bend as T

377# Trace-aware tx_set: when tracing is enabled, project the current and incoming
378# values and render detached V strings to annotate the attempted write/refusal.
379# Disabled tracing delegates directly without these presentation reads. Ownership
380# and write results remain those of tx_set; project/display are trusted adapters.
381def tx_set_displayed(~S:Data,~Store:Type,~R:Type,~E:Data,~Rest:Type,~C:Type,~V:Data,~Token:Data,~take:Store -> Rest & Col.Column<S,C>,~put:Rest -> Col.Column<S,C> -> Store,~project:C -> C & V,~display:V -> String,family:Family<S,Store,Rest,C,V,Token,take,put,project>,tx:T.Tx<W.World<S,Store,R,E>,E>,handle:W.Handle<S>,incoming:C) -> SetResult<T.Tx<W.World<S,Store,R,E>,E>,C>:
382  displayed_enabled(~S,~Store,~R,~E,~Rest,~C,~V,~Token,~take,~put,~project,~display,family,handle,incoming,T.trace_enabled(~W.World<S,Store,R,E>,~E,tx))

Uses (10)

Used by (1)