consio-0.1.1 has been yanked.
Input a line and convert it to any type which implement trait FromBuf
Support Type:
(unsigned) integer (binary, octal, decimal, hex)
float, char, String and their Vec<T>
Usage
use consio::input;
fn main() {
let str = input!(String).unwrap(); assert_eq!(str.as_str(), "Hello World!");
let n = input!(i32).unwrap(); assert_eq!(n, 11);
let hex = input!(i32).unwrap(); assert_eq!(hex, 17);
let value = input!(print "Input a string: ").unwrap();
let value = input!(default); assert_eq!(value, Default::default());
}