def Bytes.snapshot.scan_next
mylsm-lsm-store@0.6.0.1 · mylsm.bend:1607
import mylsm-lsm-store@0.6.0.1/mylsm.bend as Mylsm
import Base
import mylsm-lsm-store@0.6.0.1/src/scan/RangeCursor.bend as ByteRangeCursor
1607def Bytes.snapshot.scan_next(cursor: Bytes.Cursor) -> Bytes.ScanStep:
1608 match cursor:
1609 case ByteCursor{inner, bounds}:
1610 Bytes.scan_next.cloned(inner, ByteRangeCursor.bounds.clone(bounds))
1611 case ByteOwnerCursor{_, _, _}:
1612 ScanFailure{UnsupportedOperation{}, ByteClosedCursor{}}
1613 case ByteFailureCursor{error}:
1614 ScanFailure{error, ByteClosedCursor{}}
1615 case _: ScanEnd{cursor}