Skip to main content

coalesce_delivery_range

Function coalesce_delivery_range 

Source
pub fn coalesce_delivery_range(
    last_high: i64,
    low: i64,
    high: i64,
) -> (bool, i64)
Expand description

Decide whether the next inclusive range touches the preceding range and return the maximum end offset for a merged range.

The comparison is expressed without overflowing last_high + 1 at i64::MAX.