catch-input 1.1.2

Library implementing a macro for retrieving user input from the console.
Documentation
1
2
3
4
5
6
7
8
9
use catch_input::input;


fn main() {
    let a = input!("This is A => ");
    let b = input!(|| { print!("This is B => "); });
    let c = input!((String::from("This is C => ")));
    println!("{} : {} : {}", a, b, c);
}