Struct llvm_ir::instruction::CatchPad
source · [−]pub struct CatchPad {
pub catch_switch: Operand,
pub args: Vec<Operand>,
pub dest: Name,
pub debugloc: Option<DebugLoc>,
}
Expand description
Used for exception handling. See LLVM 14 docs on the ‘catchpad’ instruction
Fields
catch_switch: Operand
args: Vec<Operand>
dest: Name
debugloc: Option<DebugLoc>
Trait Implementations
sourceimpl From<CatchPad> for Instruction
impl From<CatchPad> for Instruction
sourcefn from(inst: CatchPad) -> Instruction
fn from(inst: CatchPad) -> Instruction
Converts to this type from the input type.
sourceimpl HasDebugLoc for CatchPad
impl HasDebugLoc for CatchPad
sourcefn get_debug_loc(&self) -> &Option<DebugLoc>
fn get_debug_loc(&self) -> &Option<DebugLoc>
Returns the DebugLoc
associated with the given Instruction
,
Terminator
, GlobalVariable
, or Function
; or None
if it doesn’t
have a DebugLoc
. Read more
sourceimpl PartialEq<CatchPad> for CatchPad
impl PartialEq<CatchPad> for CatchPad
sourceimpl TryFrom<Instruction> for CatchPad
impl TryFrom<Instruction> for CatchPad
impl StructuralPartialEq for CatchPad
Auto Trait Implementations
impl RefUnwindSafe for CatchPad
impl Send for CatchPad
impl Sync for CatchPad
impl Unpin for CatchPad
impl UnwindSafe for CatchPad
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more