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