macro_rules! eprompt {
($($arg:tt)*) => { ... };
}Expand description
Prints to the standard error. Then reads a line of input.
This is a shorthand for calling eprint!, read_line, and removing
any trailing newlines from the output.
ยงExamples
use io_prompt_prototype::eprompt;
let num: u16 = eprompt!("What's your favorite number? >").parse()?;
println!("Oh, cool: {}!", num);