Skip to main content

build_suggestions

Function build_suggestions 

Source
pub fn build_suggestions(
    target: Option<&str>,
    visible: &[ElementSummary],
) -> Vec<String>
Expand description

Generate “Did you mean …?” suggestions from the current visible element list. Contract: threshold > 0.5, top 3, score desc → field (name > text) → DFS index asc.

target = None → empty vec.