def to_bytes

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

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

672def to_bytes(v: Value) -> Result<&2, &1, Error, B.Bytes>:
673  match v:
674    case Blob{b}:
675      Done{b}
676    case _:
677      Fail{Malformed{}}

Uses (4)

Used by (1)