#[non_exhaustive]pub enum ButtonPreset {
Close,
Ok,
OkCancel,
RetryCancel,
YesNo,
YesNoCancel,
}Expand description
Presets of button groups.
These presets define a couple of well-established button combinations, in the order that users expect.
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.
Trait Implementations§
Source§impl Clone for ButtonPreset
impl Clone for ButtonPreset
Source§fn clone(&self) -> ButtonPreset
fn clone(&self) -> ButtonPreset
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 ButtonPreset
impl Debug for ButtonPreset
Source§impl Default for ButtonPreset
impl Default for ButtonPreset
Source§fn default() -> ButtonPreset
fn default() -> ButtonPreset
Returns the “default value” for a type. Read more
Source§impl FromStr for ButtonPreset
impl FromStr for ButtonPreset
Source§impl PartialEq for ButtonPreset
impl PartialEq for ButtonPreset
impl Copy for ButtonPreset
impl Eq for ButtonPreset
impl StructuralPartialEq for ButtonPreset
Auto Trait Implementations§
impl Freeze for ButtonPreset
impl RefUnwindSafe for ButtonPreset
impl Send for ButtonPreset
impl Sync for ButtonPreset
impl Unpin for ButtonPreset
impl UnwindSafe for ButtonPreset
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