usestd::io::stdin;/// Reads a line of user input from stdin into a String and returns it. Panics on fail.
pubfnread_line()-> String
{letmut input =String::new();stdin().read_line(&mut input).expect("Error: unable to read user input");
input
}/// Prompts the user with the provided &str msg before calling read_line() to get a user input string
pubfnread_line_prompt(msg:&str)-> String
{println!("{}", msg);read_line()}