TraceContext.TraceDraw.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 1099-1109 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=1099&end_line=1109 import Base # The trace ID of a finished trace ID draw, or why it failed. A draw that has # not finished would report exhaustion; law trace_id_ends shows that the word # budget of TraceId.generate_with makes that case unreachable. def TraceDraw.result(step: TraceStep) -> Result<&2, &2, GenerationError, TraceId>: match step: case DrawnTraceId{id}: Done{id} case TraceFailed{error}: Fail{error} case NeedTraceWord{draw}: Fail{ExhaustedTraceId{}} Uses (4): 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=GenerationError https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=TraceId https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=TraceStep