def TraceId.parse
import bend-trace-context@0.2.0.0/trace_context.bend as TraceContextimport Base
import bend-trace-context@0.2.0.0/src/digits.bend as Digits
532# Parse a supplied trace ID: exactly 32 lowercase hexadecimal digits, not all
533# zero. Error offsets count from the start of the ID. The result makes no
534# randomness assertion (laws trace_id_parse and trace_id_accepts).
535def TraceId.parse(text: String) -> Result<&2, &2, Error, TraceId>:
536 do Result<&2, &2, Error, TraceId>:
537 value : Digits.NonZero<32n> <- Parse.id(32n, text, TraceIdField{})
538 return TraceId{value, False{}}
Uses (10)
Used by (0)
No other definition uses this definition.