def custom_result

bendvy-ecs-core@0.1.0.3 · decode_construction.bend:37

import bendvy-ecs-core@0.1.0.3/decode_construction.bend as DecodeConstruction
import Base
import bundle_construction.bend as Build

37def custom_result(~I:Type,~P:Type,~Custom:Data,result:Build.Construction<I,P,Custom>) -> Build.Construction<I,P,Error<Custom>>:
38  match result:
39    case Build.Invalid{owner,error}:Build.Invalid{owner,Constructor{error}}
40    case Build.Constructed{owner,undo}:Build.Constructed{owner,undo}

Uses (2)

Used by (1)