def entry.result

mylsm-lsm-store@0.6.0.1 · src/scan/ByteBlockReader.bend:1729

import mylsm-lsm-store@0.6.0.1/src/scan/ByteBlockReader.bend as ByteBlockReader
import Base

1729def entry.result(
1730  result: Result<&1, &1, U32 & String, Step>
1731) -> IO(EntryStep):
1732  match result:
1733    case Fail{error}:
1734      IO.pure(EntryStep, EntryError{EntryFailed{error}})
1735    case Done{End{}}:
1736      IO.pure(EntryStep, EntryEnd{})
1737    case Done{Block{reader, entries}}:
1738      IO.pure(EntryStep, entry.ready(reader, entries))

Uses (10)

Used by (1)