Return `max_id + 1`, or error if the ID space is exhausted.
(max_id: u64)
| 33 | |
| 34 | /// Return `max_id + 1`, or error if the ID space is exhausted. |
| 35 | fn next_id(max_id: u64) -> PristineResult<u64> { |
| 36 | max_id.checked_add(1).ok_or(PristineError::IdSpaceExhausted) |
| 37 | } |
| 38 | |
| 39 | /// The pristine database handle |
| 40 | /// |