def classify

bendvy-ecs-core@0.1.0.4 · restore_graph_runtime_state.bend:15

import bendvy-ecs-core@0.1.0.4/restore_graph_runtime_state.bend as RestoreGraphRuntimeState
import Base
import bendvy-ecs-core@0.1.0.4/relation_commands.bend as Notice
import bendvy-ecs-core@0.1.0.4/internal/relation_failures/domains.bend as Domains
import bendvy-ecs-core@0.1.0.4/relation_types.bend as Graph

15def classify(~S:Data,~P:Data,value:Notice.Notice<S,P>) -> Maybe<Domains.DescriptorKey<S>>:
16  match value:
17    case Notice.RelationFailed{Graph.Failure{Graph.Descriptor{id,_,_,_},_,_,_,_}}:Some{Domains.DeclaredKey{id}}
18    case _:None{}

Uses (5)

Used by (1)