pub fn pick_offset(
snapshots: Vec<SnapshotListEntry>,
offset: i64,
) -> Option<SnapshotListEntry>Expand description
Pick the snapshot at offset (0 = newest) from a newest-first list. A
negative offset clamps to the newest rather than panicking; an out-of-range
offset returns None (the caller applies onMissingSnapshot).