pub struct Question { /* private fields */ }
Expand description
A question dialog box.
This dialog box displays a text and an optional title and has a yes and a no button. The output is the button presed by the user, or Cancel if the dialog has been cancelled.
Example
use dialog::DialogBox;
let choice = dialog::Question::new("Do you want to continue?")
.title("Question")
.show()
.expect("Could not display dialog box");
println!("The user chose: {:?}", choice);
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Question
impl Send for Question
impl Sync for Question
impl Unpin for Question
impl UnwindSafe for Question
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more