Skip to main content

local_truncation_plan

Function local_truncation_plan 

Source
pub fn local_truncation_plan(
    sealed_bases: &[i64],
    active_base: Option<i64>,
    cut: i64,
) -> LocalTruncationPlan
Expand description

Keep exactly the sealed-segment prefix whose bases precede the cut and keep the current active segment exactly when its base also precedes the cut.