handle_completion

Function handle_completion 

Source
pub fn handle_completion<F, I>(handler: F)
where F: FnOnce(Completion) -> I, I: IntoIterator, I::Item: Display,
Expand description

Helper function for handling completion requests with candidates. To delegate, you’ll have to match Completion::init() for yourself.

§Panics

This function panics if the completion request is invalid or if the environment variable COMPLETE’s value is not recognized.