Skip to main content

settle

Function settle 

Source
pub fn settle<T: Clone>(
    labels: &mut [Option<T>],
    opens_utterance: impl Fn(usize) -> bool,
)
Expand description

Fills missing labels from neighboring speakers. Utterance openings prefer the following label; other gaps prefer the preceding one. All-None input stays unchanged.