#[non_exhaustive]pub enum Resumption {
Continue(Box<UnderstoodAct>),
Declined {
record: Option<Box<UnderstoodAct>>,
},
Nothing,
}Expand description
What answering a card means for the act it was guarding.
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.
Continue(Box<UnderstoodAct>)
The answer continues the work: this act goes through the normal path.
Declined
The answer refused it. record is the operation a DeclineAndRecord option
names, so the case can remember it was asked.
Fields
§
record: Option<Box<UnderstoodAct>>The act that records the refusal, when the option named one.
Nothing
Nothing to continue: no act on the card, an answer with its own path, or a case this turn cannot address.
Implementations§
Source§impl Resumption
impl Resumption
Sourcepub fn act(&self) -> Option<&UnderstoodAct>
pub fn act(&self) -> Option<&UnderstoodAct>
The act to run, when there is one.
Sourcepub const fn is_declined(&self) -> bool
pub const fn is_declined(&self) -> bool
Returns true when the user refused the instruction the card guarded.
Trait Implementations§
Source§impl Clone for Resumption
impl Clone for Resumption
Source§impl Debug for Resumption
impl Debug for Resumption
impl Eq for Resumption
Source§impl PartialEq for Resumption
impl PartialEq for Resumption
impl StructuralPartialEq for Resumption
Auto Trait Implementations§
impl Freeze for Resumption
impl RefUnwindSafe for Resumption
impl Send for Resumption
impl Sync for Resumption
impl Unpin for Resumption
impl UnsafeUnpin for Resumption
impl UnwindSafe for Resumption
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.