pub enum ShouldQuit {
No = 0,
Yes = 1,
}Expand description
Should the main program quit? More self-documenting than a boolean!
This type is returned by the update method, since with a boolean it’s
often unclear if true means “should continue” or “should quit”.
Variants§
No = 0
The wrapped library thinks the main program should continue running.
Yes = 1
The wrapped library thinks the main program should quit now.
Trait Implementations§
Source§impl Debug for ShouldQuit
impl Debug for ShouldQuit
Source§impl PartialEq for ShouldQuit
impl PartialEq for ShouldQuit
impl Eq for ShouldQuit
impl StructuralPartialEq for ShouldQuit
Auto Trait Implementations§
impl Freeze for ShouldQuit
impl RefUnwindSafe for ShouldQuit
impl Send for ShouldQuit
impl Sync for ShouldQuit
impl Unpin for ShouldQuit
impl UnwindSafe for ShouldQuit
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