minimal_multi_select

Function minimal_multi_select 

Source
pub fn minimal_multi_select<T: Display>(
    opts: Vec<T>,
) -> Result<Option<Vec<T>>, InquireError>
Expand description

Provides a minimal interactive multi-select prompt, returning Option::None if no options are provided, the user cancels, or no items are selected.

Wraps [inquire::MultiSelect] with a slim rendering (see minimal_render_config) and no help message.

§Type Parameters

  • T The type of the options, constrained to implement Display.

§Errors

  • [InquireError]: Propagated from [inquire] for failures in prompt rendering or user interaction, excluding cancellation which is handled as None.