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