pub fn yes_or_no<S: ToString>(prompt: S) -> bool {
    let response = input(prompt);

    response.to_lowercase().trim() == "y"
}
/// Used to prompt the user with a yes or no question.
/// If they answer with Y or y, this function returns true.
Used to prompt the user with a yes or no question.
If they answer with Y or y, this function returns true.
Used to prompt the user with a yes or no question . If they answer with Y or y this function returns true .
pub fn yes_or_no<S: ToString>(prompt: S) -> bool {
    let response = input(prompt);
    response.to_lowercase().trim() == "y"
}
pub fn yes_or_no < S : ToString > ( prompt : S ) -> bool { let response = input ( prompt ) ; response . to_lowercase ( ) . trim ( ) == " " }
Used to prompt the user with a yes or no question.
Used to prompt the user with a yes or no question .
prompt
S
prompt
S