Enum debris_mir::mir_context::ReturnContext
source · pub enum ReturnContext {
Pass,
ManuallyHandled(MirContextId),
Specific(MirContextId),
}
Expand description
Specifies where to jump to when all commands of a context are run
Variants§
Pass
Don’t jump anywhere, just return to the caller
ManuallyHandled(MirContextId)
Don’t jump anywhere, because the jump was handled manually. This is used to store some information about the target return context.
Specific(MirContextId)
Jump to a specific context
Implementations§
source§impl ReturnContext
impl ReturnContext
pub fn set_handled_manually(&mut self)
Trait Implementations§
source§impl Clone for ReturnContext
impl Clone for ReturnContext
source§fn clone(&self) -> ReturnContext
fn clone(&self) -> ReturnContext
Returns a copy 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 ReturnContext
impl Debug for ReturnContext
source§impl From<ReturnContext> for ReturnContextBehavior
impl From<ReturnContext> for ReturnContextBehavior
source§fn from(return_context: ReturnContext) -> Self
fn from(return_context: ReturnContext) -> Self
Converts to this type from the input type.
impl Copy for ReturnContext
Auto Trait Implementations§
impl RefUnwindSafe for ReturnContext
impl Send for ReturnContext
impl Sync for ReturnContext
impl Unpin for ReturnContext
impl UnwindSafe for ReturnContext
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