casual
pub fn confirm<S>(text: S) -> bool where S: AsRef<str>,
Prompts the user for confirmation (yes/no).
if confirm("Are you sure you want to continue?") { // continue } else { panic!("Aborted!"); }