pub enum LeaveChoice {
Keep,
Discard,
Back,
}Expand description
An answer to the question asked on leaving with changes
(LEAVE_QUESTION).
Variants§
Keep
Save the changes and leave.
Discard
Put every setting back as it was when the screen opened, and leave.
Back
Stay on the screen.
Implementations§
Source§impl LeaveChoice
impl LeaveChoice
Sourcepub const ALL: [LeaveChoice; 3]
pub const ALL: [LeaveChoice; 3]
Every answer, in the order shown.
Sourcepub fn ask() -> Ask<LeaveChoice>
pub fn ask() -> Ask<LeaveChoice>
The question asked on leaving with changes (LEAVE_QUESTION):
every answer, focused on staying, which Cancel answers too.
Trait Implementations§
Source§impl Clone for LeaveChoice
impl Clone for LeaveChoice
Source§fn clone(&self) -> LeaveChoice
fn clone(&self) -> LeaveChoice
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 LeaveChoice
Source§impl Debug for LeaveChoice
impl Debug for LeaveChoice
impl Eq for LeaveChoice
Source§impl PartialEq for LeaveChoice
impl PartialEq for LeaveChoice
impl StructuralPartialEq for LeaveChoice
Auto Trait Implementations§
impl Freeze for LeaveChoice
impl RefUnwindSafe for LeaveChoice
impl Send for LeaveChoice
impl Sync for LeaveChoice
impl Unpin for LeaveChoice
impl UnsafeUnpin for LeaveChoice
impl UnwindSafe for LeaveChoice
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