restore_leaf.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.6/restore_leaf.bend as Restore_leaf
7 imports
import Base import ./persistence_declaration.bend as Persistence import ./restore_data.bend as R import ./decode_data.bend as D import ./decode_construction.bend as Constructor import ./bundle_construction.bend as Build import ./ordinary_declaration.bend as Identity
Types
type Record source · line 9 · raw
@I:Type -> @P:Type -> Type
Record@I:Type -> @P:Type -> @position:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @owner:P -> @undo:(@_:P -> I) -> Record<I, P>
type Applied source · line 11 · raw
@I:Type -> @P:Type -> Type
Applied@I:Type -> @P:Type -> @position:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @undo:(@_:P -> I) -> Applied<I, P>
type State source · line 13 · raw
@Context:Type -> @I:Type -> @P:Type -> Type
State@Context:Type -> @I:Type -> @P:Type -> @context:Context -> @records:List<&1, Record<I, P>> -> @returned:List<&1, I> -> @removed:List<&1, P> -> @applied:List<&1, Applied<I, P>> -> State<Context, I, P>
type FamilyKind source · line 15 · raw
Data
ComponentFamilyKind
ResourceFamilyKind
Definitions
def same_kind source · line 16 · raw
@kind:FamilyKind -> @position:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> Bool
Templates
template constructed source · line 21 · raw
@-Context:Type -> @-I:Type -> @-P:Type -> @-Custom:Data -> @position:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @records:List<&1, Record<I, P>> -> @returned:List<&1, I> -> @removed:List<&1, P> -> @applied:List<&1, Applied<I, P>> -> @context:Context -> @result:0x14a72e1c180a5ab1f8a056d43822425c/bundle_construction.Construction<I, P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_construction.Error<Custom>> -> Pair(State<Context, I, P>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)
template stored source · line 25 · raw
@-I:Type -> @-P:Type -> @-Custom:Data -> @undo:(@_:P -> I) -> @receipt:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Receipt<P> -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_construction.Construction<I, P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_construction.Error<Custom>>
template admitted source · line 29 · raw
@-S:Data -> @-I:Type -> @-P:Type -> @-Custom:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @declaration:0x14a72e1c180a5ab1f8a056d43822425c/persistence_declaration.Constructed<S, P, identity, project> -> @result:0x14a72e1c180a5ab1f8a056d43822425c/bundle_construction.Construction<I, P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_construction.Error<Custom>> -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_construction.Construction<I, P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_construction.Error<Custom>>
template declaration source · line 33 · raw
@-S:Data -> @-I:Type -> @-P:Type -> @-Custom:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-build:(@_:I -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_construction.Construction<I, P, Custom>) -> @factory:0x14a72e1c180a5ab1f8a056d43822425c/decode_construction.FallibleFactory<S, I, P, Custom, identity, project, incoming, build> -> 0x14a72e1c180a5ab1f8a056d43822425c/persistence_declaration.Constructed<S, P, identity, project>
template supplied source · line 36 · raw
@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @-Custom:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-build:(@_:I -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_construction.Construction<I, P, Custom>) -> @-factory:0x14a72e1c180a5ab1f8a056d43822425c/decode_construction.FallibleFactory<S, I, P, Custom, identity, project, incoming, build> -> @position:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @records:List<&1, Record<I, P>> -> @returned:List<&1, I> -> @removed:List<&1, P> -> @applied:List<&1, Applied<I, P>> -> @observed:Pair(Context, I) -> Pair(State<Context, I, P>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)
template selected source · line 39 · raw
@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @-Custom:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-build:(@_:I -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_construction.Construction<I, P, Custom>) -> @-factory:0x14a72e1c180a5ab1f8a056d43822425c/decode_construction.FallibleFactory<S, I, P, Custom, identity, project, incoming, build> -> @-supply:(@_:Context -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> Pair(Context, I)) -> @matches:Bool -> @state:State<Context, I, P> -> @position:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @field:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(State<Context, I, P>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)
template stage source · line 43 · raw
@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @-Custom:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-build:(@_:I -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_construction.Construction<I, P, Custom>) -> @-factory:0x14a72e1c180a5ab1f8a056d43822425c/decode_construction.FallibleFactory<S, I, P, Custom, identity, project, incoming, build> -> @-supply:(@_:Context -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> Pair(Context, I)) -> @-kind:FamilyKind -> @state:State<Context, I, P> -> @+position:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @+field:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(State<Context, I, P>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)
template released source · line 46 · raw
@-I:Type -> @-P:Type -> @head:I -> @rest:List<&1, I> -> List<&1, I>
template release_records source · line 48 · raw
@-I:Type -> @-P:Type -> @records:List<&1, Record<I, P>> -> @returned:List<&1, I> -> List<&1, I>
template release source · line 52 · raw
@-Context:Type -> @-I:Type -> @-P:Type -> @state:State<Context, I, P> -> State<Context, I, P>
template empty source · line 55 · raw
@-Context:Type -> @-I:Type -> @-P:Type -> @context:Context -> State<Context, I, P>
template commit source · line 57 · raw
@-Context:Type -> @-I:Type -> @-P:Type -> @state:State<Context, I, P> -> State<Context, I, P>
template take_recovery source · line 60 · raw
@-Context:Type -> @-I:Type -> @-P:Type -> @state:State<Context, I, P> -> Pair(State<Context, I, P>, List<&1, I>)