checkbox

Function checkbox 

Source
pub fn checkbox(options: &Vec<&str>) -> Result<HashSet<usize>>
Examples found in repository?
examples/checkbox-unicode.rs (line 5)
2fn main() {
3    println!("What colors do you like?");
4    let options = vec!["red", "blue", "green"];
5    if let Ok(colors_indecies) = easy_input_tools::unicode::checkbox(&options) {
6        println!(
7            "You like: {:?}",
8            options
9                .iter()
10                .enumerate()
11                .filter(|(i, _)| colors_indecies.contains(i))
12                .map(|(_, option)| option)
13                .collect::<Vec<_>>()
14        );
15    } else {
16        println!("Some io issue");
17    }
18}