Mylsm.Bytes.scan_open.owned.bounds: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/mylsm.bend as Mylsm Lines 1428-1443 of mylsm-lsm-store@0.6.0.1/mylsm.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&start_line=1428&end_line=1443 import Base import mylsm-lsm-store@0.6.0.1/src/scan/RangeCursor.bend as ByteRangeCursor def Bytes.scan_open.owned.bounds( handle: Bytes.Handle, snapshot: Bytes.Snapshot, copies: ByteRangeCursor.Bounds & ByteRangeCursor.Bounds ) -> IO(Bytes.Handle & Result<&1, &1, Bytes.Error, Bytes.Cursor>): match copies: case (ByteRangeCursor.Bounds{None{}, None{}, Some{prefix}}, retained): do IO>: opened : Bytes.Snapshot & Result<&1, &1, Bytes.Error, Bytes.Cursor> <- Bytes.snapshot.scan_prefix(snapshot, prefix) Bytes.scan_open.owned.cursor(handle, retained, opened) case (ByteRangeCursor.Bounds{lower, upper, _}, retained): do IO>: opened : Bytes.Snapshot & Result<&1, &1, Bytes.Error, Bytes.Cursor> <- Bytes.snapshot.scan_range(snapshot, lower, upper) Bytes.scan_open.owned.cursor(handle, retained, opened) Uses (14): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.Cursor https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.Handle https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.Snapshot https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.scan_open.owned.cursor https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.snapshot.scan_prefix https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.snapshot.scan_range https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/RangeCursor.bend&name=Bounds