pub enum ExceptionTableItem {
Tag(ExceptionTag, BlockCall),
Default(BlockCall),
Context(Value),
}
Expand description
A single item in the match-list of an exception table.
Variants§
Tag(ExceptionTag, BlockCall)
A tag match, taking the specified block-call destination if the tag matches the one in the thrown exception. (The match predicate is up to the runtime; Cranelift only emits metadata containing this tag.)
Default(BlockCall)
A default match, always taking the specified block-call destination.
Context(Value)
A dynamic context update, applying to all tags until the next update. (Cranelift does not interpret this context, but only provides information to the runtime regarding where to find it.)
Trait Implementations§
Source§impl Clone for ExceptionTableItem
impl Clone for ExceptionTableItem
Source§fn clone(&self) -> ExceptionTableItem
fn clone(&self) -> ExceptionTableItem
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ExceptionTableItem
impl RefUnwindSafe for ExceptionTableItem
impl Send for ExceptionTableItem
impl Sync for ExceptionTableItem
impl Unpin for ExceptionTableItem
impl UnwindSafe for ExceptionTableItem
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