Skip to main content

reserve_offsets

Function reserve_offsets 

Source
pub const fn reserve_offsets(next: i64, count: i64) -> Option<(i64, i64)>
Expand description

Reserve count offsets from next, returning (base, next_after).

Admits exactly a nonnegative frontier, a positive count, and a range whose end fits i64; the reservation then starts at next and the frontier moves to next + count. Anything else is None.