pub enum LegacyCatch {
Catch {
tag: TagId,
handler: InstrSeqId,
},
CatchAll {
handler: InstrSeqId,
},
Delegate {
relative_depth: u32,
},
}Expand description
A catch clause in a legacy Try instruction
Variants§
Catch
catch tag - catches exception with specific tag
CatchAll
catch_all - catches any exception
Fields
§
handler: InstrSeqIdThe catch-all handler block
Delegate
delegate relative_depth - delegates to outer block instead of catching
Trait Implementations§
Source§impl Clone for LegacyCatch
impl Clone for LegacyCatch
Auto Trait Implementations§
impl Freeze for LegacyCatch
impl RefUnwindSafe for LegacyCatch
impl Send for LegacyCatch
impl Sync for LegacyCatch
impl Unpin for LegacyCatch
impl UnsafeUnpin for LegacyCatch
impl UnwindSafe for LegacyCatch
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