def to_uint32

bend-kit-protobuf@0.2.0.0 · protobuf.bend:555

import bend-kit-protobuf@0.2.0.0/protobuf.bend as Protobuf
import Base

555def to_uint32(v: Value) -> Result<&2, &2, Error, U32>:
556  match v:
557    case Varint{Word64{h, l}}:
558      Done{l}
559    case _:
560      Fail{Malformed{}}

Uses (5)

Used by (3)