fn result_with_cancel(&mut self) -> Option<TermString> {
        match self.selected {
            InputDialogItem::Ok => Some(self.result()),
            InputDialogItem::Cancel => None,
        }
    }
/// Computes the resulting string after accepting or rejecting the dialog
/// (with the CANCEL option available).
Computes the resulting string after accepting or rejecting the dialog
(with the CANCEL option available).
Computes the resulting string after accepting or rejecting the dialog ( with the CANCEL option available ) .
fn result_with_cancel(&mut self) -> Option<TermString> {
        match self.selected {
            InputDialogItem::Ok => Some(self.result()),
            InputDialogItem::Cancel => None,
        }
    }
fn result_with_cancel ( & mut self ) -> Option < TermString > { match self . selected { InputDialogItem :: Ok => Some ( self . result ( ) ) , InputDialogItem :: Cancel => None , } }
Computes the resulting string after accepting or rejecting the dialog
(with the CANCEL option available).
Computes the resulting string after accepting or rejecting the dialog ( with the CANCEL option available ) .
&mut self
&mut self