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§
Source§impl Clone for LandingPad
impl Clone for LandingPad
Source§fn clone(&self) -> LandingPad
fn clone(&self) -> LandingPad
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 moreSource§impl Debug for LandingPad
impl Debug for LandingPad
Source§impl Display for LandingPad
impl Display for LandingPad
Source§impl From<LandingPad> for Instruction
impl From<LandingPad> for Instruction
Source§fn from(inst: LandingPad) -> Instruction
fn from(inst: LandingPad) -> Instruction
Converts to this type from the input type.
Source§impl HasDebugLoc for LandingPad
impl HasDebugLoc for LandingPad
Source§impl HasResult for LandingPad
impl HasResult for LandingPad
fn get_result(&self) -> &Name
Source§impl Hash for LandingPad
impl Hash for LandingPad
Source§impl PartialEq for LandingPad
impl PartialEq for LandingPad
Source§impl TryFrom<Instruction> for LandingPad
impl TryFrom<Instruction> for LandingPad
impl StructuralPartialEq for LandingPad
Auto Trait Implementations§
impl Freeze for LandingPad
impl RefUnwindSafe for LandingPad
impl Send for LandingPad
impl Sync for LandingPad
impl Unpin for LandingPad
impl UnwindSafe for LandingPad
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more