Function find_stable_prefix_length

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub fn find_stable_prefix_length(scores: &[BlockStabilityScore]) -> usize

Count the number of leading scores classified as stable.

Parameters

  • scores: Span-level stability scores in prompt order.

Returns

The number of consecutive leading entries whose classification is StabilityClass::Stable.