TraceContext.Step.result: def of bend-trace-context@0.2.0.0 Import: import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext Lines 1356-1369 of bend-trace-context@0.2.0.0/trace_context.bend: https://jend.leeeet.dev/read.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&start_line=1356&end_line=1369 import Base # The result of a finished generation. A generation that has not finished # would report the identifier it was drawing; the root_ends, child_ends and # restart_ends laws show that the word budgets of the operations below make # those cases unreachable. def Step.result(step: Step) -> Result<&2, &2, GenerationError, LocalContext>: match step: case Created{context}: Done{context} case Failed{error}: Fail{error} case NeedWord{DrawTrace{draw, sampled}}: Fail{ExhaustedTraceId{}} case NeedWord{DrawSpan{draw, trace_id, sampled}}: Fail{ExhaustedSpanId{}} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Draw https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=GenerationError https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=LocalContext https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Step