#[non_exhaustive]#[repr(u32)]pub enum DialogButtonRole {
None = 0,
Accept = 1,
Reject = 2,
Apply = 3,
Reset = 4,
Help = 5,
Action = 6,
}Expand description
This enum represents the value of the dialog-button-role property which can be added to
any element within a Dialog to put that item in the button row, and its exact position
depends on the role and the platform.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None = 0
This isn’t a button meant to go into the bottom row
Accept = 1
This is the role of the main button to click to accept the dialog. e.g. “Ok” or “Yes”
Reject = 2
This is the role of the main button to click to reject the dialog. e.g. “Cancel” or “No”
Apply = 3
This is the role of the “Apply” button
Reset = 4
This is the role of the “Reset” button
Help = 5
This is the role of the “Help” button
Action = 6
This is the role of any other button that performs another action.
Trait Implementations§
Source§impl Clone for DialogButtonRole
impl Clone for DialogButtonRole
Source§fn clone(&self) -> DialogButtonRole
fn clone(&self) -> DialogButtonRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DialogButtonRole
Source§impl Debug for DialogButtonRole
impl Debug for DialogButtonRole
Source§impl Default for DialogButtonRole
impl Default for DialogButtonRole
Source§impl Display for DialogButtonRole
impl Display for DialogButtonRole
impl Eq for DialogButtonRole
Source§impl FromStr for DialogButtonRole
impl FromStr for DialogButtonRole
Source§impl Hash for DialogButtonRole
impl Hash for DialogButtonRole
Source§impl PartialEq for DialogButtonRole
impl PartialEq for DialogButtonRole
Source§fn eq(&self, other: &DialogButtonRole) -> bool
fn eq(&self, other: &DialogButtonRole) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DialogButtonRole
Auto Trait Implementations§
impl Freeze for DialogButtonRole
impl RefUnwindSafe for DialogButtonRole
impl Send for DialogButtonRole
impl Sync for DialogButtonRole
impl Unpin for DialogButtonRole
impl UnsafeUnpin for DialogButtonRole
impl UnwindSafe for DialogButtonRole
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
impl<T> Brush for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Converts the given value to a
SharedString.