Struct llvm_ir::instruction::LandingPad
source · [−]pub struct LandingPad {
pub result_type: TypeRef,
pub clauses: Vec<LandingPadClause>,
pub dest: Name,
pub cleanup: bool,
pub debugloc: Option<DebugLoc>,
}
Expand description
Used for exception handling. See LLVM 14 docs on the ‘landingpad’ instruction
Fields
result_type: TypeRef
clauses: Vec<LandingPadClause>
dest: Name
cleanup: bool
debugloc: Option<DebugLoc>
Trait Implementations
sourceimpl Clone for LandingPad
impl Clone for LandingPad
sourcefn clone(&self) -> LandingPad
fn clone(&self) -> LandingPad
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LandingPad
impl Debug for LandingPad
sourceimpl Display for LandingPad
impl Display for LandingPad
sourceimpl From<LandingPad> for Instruction
impl From<LandingPad> for Instruction
sourcefn from(inst: LandingPad) -> Instruction
fn from(inst: LandingPad) -> Instruction
Converts to this type from the input type.
sourceimpl HasDebugLoc for LandingPad
impl HasDebugLoc for LandingPad
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 HasResult for LandingPad
impl HasResult for LandingPad
fn get_result(&self) -> &Name
sourceimpl PartialEq<LandingPad> for LandingPad
impl PartialEq<LandingPad> for LandingPad
sourcefn eq(&self, other: &LandingPad) -> bool
fn eq(&self, other: &LandingPad) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl TryFrom<Instruction> for LandingPad
impl TryFrom<Instruction> for LandingPad
impl StructuralPartialEq for LandingPad
Auto Trait Implementations
impl RefUnwindSafe for LandingPad
impl Send for LandingPad
impl Sync for LandingPad
impl Unpin for LandingPad
impl UnwindSafe for LandingPad
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