prompt_user_selection

Function prompt_user_selection 

Source
pub fn prompt_user_selection<T: Display>(control: Select<'_, T>) -> Option<T>
Expand description

Prompts the user a selection from the provided options. Takes any form of Inquires Select and returns the output from the user. If None is returned it is assumed the user un-forcefully cancelled the action, e.g. pressed ESC.

This has the same pattern as prompt_user for obvious reasons.