def fallible_construct

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

import bendvy-ecs-core@0.1.0.3/decode_construction.bend as DecodeConstruction
import Base
import ordinary_declaration.bend as Identity
import decode_data.bend as D
import decode.bend as Decode
import bundle_construction.bend as Build

45def fallible_construct(~S:Data,~I:Type,~P:Type,~Custom:Data,~identity:Identity.Declaration<S,P>,~project:P -> P & D.Raw,~incoming:I -> I & D.Raw,~build:I -> D.Raw -> Build.Construction<I,P,Custom>,factory:FallibleFactory<S,I,P,Custom,identity,project,incoming,build>,input:I) -> Build.Construction<I,P,Error<Custom>>:
46  match factory:
47    case FallibleFactory{_,inputCodec}:fallible_checked(~I,~P,~Custom,~build,Decode.decode_owner(~I,~incoming,inputCodec,input))

Uses (8)

Used by (1)