Enum flowistry_pdg::rustc::mir::UnwindAction
source · pub enum UnwindAction {
Continue,
Unreachable,
Terminate,
Cleanup(BasicBlock),
}
Expand description
Action to be taken when a stack unwind happens.
Variants§
Continue
No action is to be taken. Continue unwinding.
This is similar to Cleanup(bb)
where bb
does nothing but Resume
, but they are not
equivalent, as presence of Cleanup(_)
will make a frame non-POF.
Unreachable
Triggers undefined behavior if unwind happens.
Terminate
Terminates the execution if unwind happens.
Depending on the platform and situation this may cause a non-unwindable panic or abort.
Cleanup(BasicBlock)
Cleanups to be done.
Auto Trait Implementations§
impl RefUnwindSafe for UnwindAction
impl Send for UnwindAction
impl Sync for UnwindAction
impl Unpin for UnwindAction
impl UnwindSafe for UnwindAction
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