ExecutionSaveRecipe.export: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/execution_save_recipe.bend as ExecutionSaveRecipe Lines 33-39 of bendvy-ecs-core@0.1.0.3/execution_save_recipe.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/execution_save_recipe.bend&start_line=33&end_line=39 import Base import bendvy-ecs-core@0.1.0.3/ordinary_declaration.bend as C import bendvy-ecs-core@0.1.0.3/persistence_declaration.bend as Decl import bendvy-ecs-core@0.1.0.3/decode_data.bend as D import bendvy-ecs-core@0.1.0.3/decode.bend as Decode # The same retained ordinary declaration supplies codec and actual-owner # projection. Transient and Plain never evaluate the projection. def export(~S:Data,~P:Type,~identity:C.Declaration,~project:P -> P & D.Raw,recipe:Leaf,owner:P) -> Leaf & (P & Field): match recipe: case Plain{}:(Plain{},(owner,Refused{PlainUnserializable{C.key(~S,~P,identity)}})) case Transient{}:(Transient{},(owner,Omitted{})) case Constructed{+declaration}:projected(~S,~P,~identity,~project,declaration,Decode.decode_owner(~P,~project,Decl.codec(~S,~P,~identity,~project,declaration),owner)) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/decode.bend&name=decode_owner https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/decode_data.bend&name=Raw https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_save_recipe.bend&name=Field https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_save_recipe.bend&name=Leaf https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_save_recipe.bend&name=Refusal https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_save_recipe.bend&name=projected https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/ordinary_declaration.bend&name=Declaration https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/ordinary_declaration.bend&name=key https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/persistence_declaration.bend&name=codec