def snapshot.root.clone.fields
mylsm-lsm-store@0.6.0.1 · src/ByteDurableDb.bend:2747
import mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend as ByteDurableDb
import Base
import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable
2747def snapshot.root.clone.fields(
2748 paths: Maybe<&1, String> & Maybe<&1, String>,
2749 generations: Maybe<&1, U32> & Maybe<&1, U32>,
2750 retained_bytes: Nat & Nat,
2751 deltas: List<&1, ByteMemTable.Entry> & List<&1, ByteMemTable.Entry>
2752) -> SnapshotRoot & SnapshotRoot:
2753 match paths:
2754 case (first_path, second_path):
2755 match generations:
2756 case (first_generation, second_generation):
2757 match retained_bytes:
2758 case (first_bytes, second_bytes):
2759 match deltas:
2760 case (first_delta, second_delta):
2761 (SnapshotRoot{first_path, first_generation, first_bytes,
2762 first_delta},
2763 SnapshotRoot{second_path, second_generation, second_bytes,
2764 second_delta})