Type Alias Completer

Source
pub type Completer<'a> = &'a dyn Fn(&str) -> Result<Option<String>, CustomUserError>;
Expand description

Type alias to represent the function used to retrieve an optional autocompletion suggestion. The function receives the current input and should return the suggestion (if any) that will replace the current input.