pub fn options(options: &Vec<&str>) -> Result<usize>
Examples found in repository?
examples/options-unicode.rs (line 5)
2fn main() {
3 println!("Do you like to code in javascript?");
4 let options = vec!["yes", "no"];
5 if let Ok(awnser_index) = easy_input_tools::unicode::options(&options) {
6 if awnser_index == 0 {
7 println!("Wow... be careful what you say!");
8 } else {
9 println!("Right on");
10 }
11 } else {
12 println!("Some io issue");
13 }
14}