[][src]Function r_tools::r_input

pub fn r_input(prompt: String) -> String

Prints prompt and gets user input

Example

let prompt: String = "What is your name: ";
let name: String = r_input(prompt);
// User enters name "bob" here
assert_eq!(name, "bob".to_string());