ByteDurableDb.value_length.preserve: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend as ByteDurableDb Lines 1518-1534 of mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&start_line=1518&end_line=1534 import Base import mylsm-lsm-store@0.6.0.1/src/scan/VisibleStats.bend as VisibleStats import mylsm-lsm-store@0.6.0.1/src/ValueLengthPolicy.bend as ValueLengthPolicy def value_length.preserve( base_stats: VisibleStats.Stats, pair: Handle & Result<&1, &1, Error, Maybe<&1, U32>> ) -> Handle & Result<&1, &1, Error, Maybe<&1, U32>>: match pair: case (Handle{path, lock, table, state, _}, Done{Some{value_bytes}}): value_length.preserve.handle(path, lock, table, state, ValueLengthPolicy.after_lookup(base_stats, ValueLengthPolicy.ValueFound{}), Done{Some{value_bytes}}) case (Handle{path, lock, table, state, _}, Done{None{}}): value_length.preserve.handle(path, lock, table, state, ValueLengthPolicy.after_lookup(base_stats, ValueLengthPolicy.ValueMissing{}), Done{None{}}) case (Handle{path, lock, table, state, _}, Fail{error}): value_length.preserve.handle(path, lock, table, state, ValueLengthPolicy.after_lookup(base_stats, ValueLengthPolicy.LookupFailed{}), Fail{error}) Uses (11): 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=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&name=Handle https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&name=value_length.preserve.handle https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ValueLengthPolicy.bend&name=Outcome https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ValueLengthPolicy.bend&name=after_lookup https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/VisibleStats.bend&name=Stats