pub enum QuestionDialogButtons {
Yes = 4,
YesNo = 5,
YesNoCancel = 6,
}
Expand description
Represents the buttons that can be displayed on a QuestionDialog
.
§Example
extern crate nvdialog_rs;
use nvdialog_rs::{
QuestionDialog,
QuestionDialogButtons
}
fn main() {
let dialog = QuestionDialog::new(
"title",
"message",
QuestionDialogButtons::YesNoCancel
);
println!("Reply from dialog: {:?}"), dialog.get_reply());
}
§Members
Yes
: Corresponds toNVD_YES
.YesNo
: Corresponds toNVD_YES_NO
.YesNoCancel
: Corresponds toNVD_YES_NO_CANCEL
.
Variants§
Trait Implementations§
Source§impl Clone for QuestionDialogButtons
impl Clone for QuestionDialogButtons
Source§fn clone(&self) -> QuestionDialogButtons
fn clone(&self) -> QuestionDialogButtons
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for QuestionDialogButtons
impl Debug for QuestionDialogButtons
Source§impl Ord for QuestionDialogButtons
impl Ord for QuestionDialogButtons
Source§fn cmp(&self, other: &QuestionDialogButtons) -> Ordering
fn cmp(&self, other: &QuestionDialogButtons) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for QuestionDialogButtons
impl PartialEq for QuestionDialogButtons
Source§impl PartialOrd for QuestionDialogButtons
impl PartialOrd for QuestionDialogButtons
impl Eq for QuestionDialogButtons
impl StructuralPartialEq for QuestionDialogButtons
Auto Trait Implementations§
impl Freeze for QuestionDialogButtons
impl RefUnwindSafe for QuestionDialogButtons
impl Send for QuestionDialogButtons
impl Sync for QuestionDialogButtons
impl Unpin for QuestionDialogButtons
impl UnwindSafe for QuestionDialogButtons
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more