TraceContext.SpanId.from_bytes: def of bend-trace-context@0.2.0.0 Import: import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext Lines 907-914 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=907&end_line=914 import Base import bend-trace-context@0.2.0.0/src/digits.bend as Digits # Read a span ID from exactly 8 bytes, most significant first, with the rules # and errors of TraceId.from_bytes. Laws: span_bytes_inverse, # span_bytes_short, span_bytes_long, span_bytes_above, zero_bytes and # span_bytes_accepts. def SpanId.from_bytes(bytes: List<&2, U32>) -> Result<&2, &2, Error, SpanId>: do Result<&2, &2, Error, SpanId>: value : Digits.NonZero<16n> <- Parse.id_bytes(8n, bytes, SpanIdField{}) return SpanId{value} Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/src/digits.bend&name=NonZero https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Error https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Field https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Parse.id_bytes https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=SpanId