Struct llvm_ir::terminator::CatchSwitch
source · [−]pub struct CatchSwitch {
pub parent_pad: Operand,
pub catch_handlers: Vec<Name>,
pub default_unwind_dest: Option<Name>,
pub result: Name,
pub debugloc: Option<DebugLoc>,
}
Expand description
Fields
parent_pad: Operand
catch_handlers: Vec<Name>
Cannot be empty
default_unwind_dest: Option<Name>
None
here indicates ‘unwind to caller’
result: Name
debugloc: Option<DebugLoc>
Trait Implementations
sourceimpl Clone for CatchSwitch
impl Clone for CatchSwitch
sourcefn clone(&self) -> CatchSwitch
fn clone(&self) -> CatchSwitch
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 CatchSwitch
impl Debug for CatchSwitch
sourceimpl Display for CatchSwitch
impl Display for CatchSwitch
sourceimpl From<CatchSwitch> for Terminator
impl From<CatchSwitch> for Terminator
sourcefn from(term: CatchSwitch) -> Terminator
fn from(term: CatchSwitch) -> Terminator
Converts to this type from the input type.
sourceimpl HasDebugLoc for CatchSwitch
impl HasDebugLoc for CatchSwitch
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 CatchSwitch
impl HasResult for CatchSwitch
fn get_result(&self) -> &Name
sourceimpl PartialEq<CatchSwitch> for CatchSwitch
impl PartialEq<CatchSwitch> for CatchSwitch
sourcefn eq(&self, other: &CatchSwitch) -> bool
fn eq(&self, other: &CatchSwitch) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl TryFrom<Terminator> for CatchSwitch
impl TryFrom<Terminator> for CatchSwitch
impl StructuralPartialEq for CatchSwitch
Auto Trait Implementations
impl RefUnwindSafe for CatchSwitch
impl Send for CatchSwitch
impl Sync for CatchSwitch
impl Unpin for CatchSwitch
impl UnwindSafe for CatchSwitch
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