did_you_mean_help

Function did_you_mean_help 

Source
pub fn did_you_mean_help<T, I>(
    source_engine: &SourceEngine,
    span: Span,
    possible_values: I,
    max_num_of_suggestions: usize,
    enclosing: Enclosing,
) -> Hint
where T: AsRef<str>, I: IntoIterator<Item = T>,
Expand description

Returns a single line “Did you mean” Hint::help. E.g.: Did you mean “this” or “that”?

The input value is taken from the span and the help hint is positioned at that span. Each suggestion are enclosed in enclosing.