easy_input_tools 0.1.0

A library for easy input tools
Documentation
1
2
3
4
5
6
7
use std::io::Result;

pub fn options(options: &Vec<&str>) -> Result<usize> {
    crate::custom::options(options, |option, i, selected, _| {
        format!("({}) {}", if i == selected { "x" } else { " " }, option).into()
    })
}