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§
Source§impl Clone for CatchSwitch
impl Clone for CatchSwitch
Source§fn clone(&self) -> CatchSwitch
fn clone(&self) -> CatchSwitch
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 CatchSwitch
impl Debug for CatchSwitch
Source§impl Display for CatchSwitch
impl Display for CatchSwitch
Source§impl From<CatchSwitch> for Terminator
impl From<CatchSwitch> for Terminator
Source§fn from(term: CatchSwitch) -> Terminator
fn from(term: CatchSwitch) -> Terminator
Converts to this type from the input type.
Source§impl HasDebugLoc for CatchSwitch
impl HasDebugLoc for CatchSwitch
Source§impl HasResult for CatchSwitch
impl HasResult for CatchSwitch
fn get_result(&self) -> &Name
Source§impl Hash for CatchSwitch
impl Hash for CatchSwitch
Source§impl PartialEq for CatchSwitch
impl PartialEq for CatchSwitch
Source§impl TryFrom<Terminator> for CatchSwitch
impl TryFrom<Terminator> for CatchSwitch
impl StructuralPartialEq for CatchSwitch
Auto Trait Implementations§
impl Freeze for CatchSwitch
impl RefUnwindSafe for CatchSwitch
impl Send for CatchSwitch
impl Sync for CatchSwitch
impl Unpin for CatchSwitch
impl UnwindSafe for CatchSwitch
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