def parse.text.finish

mylsm-lsm-store@0.6.0.1 · src/SstFile.bend:550

import mylsm-lsm-store@0.6.0.1/src/SstFile.bend as SstFile
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

550def parse.text.finish(
551  cursor: Bytes.Cursor,
552  result: Result<&1, &1, U32 & String, String>
553) -> Bytes.Cursor & Result<&1, &1, Error, String>:
554  match result:
555    case Fail{_}:
556      (cursor, Fail{InvalidUtf8{}})
557    case Done{text}:
558      (cursor, Done{text})

Uses (7)

Used by (1)