Hex.Digit.has_bit1: def of bend-trace-context@0.2.0.0 Import: import bend-trace-context@0.2.0.0/src/hex.bend as Hex Lines 179-214 of bend-trace-context@0.2.0.0/src/hex.bend: https://jend.leeeet.dev/read.txt?path=bend-trace-context@0.2.0.0/src/hex.bend&start_line=179&end_line=214 import Base # Whether bit 1 (value 2) of the digit is set. In the last digit of the flags # this is the random-trace-id flag (W3C 3.2.2.5.2). def Digit.has_bit1(digit: Digit) -> Bool: match digit: case H0{}: False{} case H1{}: False{} case H2{}: True{} case H3{}: True{} case H4{}: False{} case H5{}: False{} case H6{}: True{} case H7{}: True{} case H8{}: False{} case H9{}: False{} case Ha{}: True{} case Hb{}: True{} case Hc{}: False{} case Hd{}: False{} case He{}: True{} case Hf{}: True{} Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/src/hex.bend&name=Digit