pub enum MirTerminatorKind {
Goto(BasicBlockId),
Branch {
cond: MirOperand,
then_block: BasicBlockId,
else_block: BasicBlockId,
},
Switch {
discr: MirOperand,
cases: Vec<(MirOperand, BasicBlockId)>,
otherwise: BasicBlockId,
},
For {
binding: MirLocalId,
iterable: MirRvalue,
body_block: BasicBlockId,
exit_block: BasicBlockId,
},
TryCatch {
try_block: BasicBlockId,
catch_block: BasicBlockId,
catch_binding: Option<MirLocalId>,
},
Return(Vec<MirOperand>),
Await {
future: MirOperand,
result: Option<MirPlace>,
resume: BasicBlockId,
},
Unreachable,
}Variants§
Trait Implementations§
Source§impl Clone for MirTerminatorKind
impl Clone for MirTerminatorKind
Source§fn clone(&self) -> MirTerminatorKind
fn clone(&self) -> MirTerminatorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MirTerminatorKind
impl Debug for MirTerminatorKind
Source§impl<'de> Deserialize<'de> for MirTerminatorKind
impl<'de> Deserialize<'de> for MirTerminatorKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MirTerminatorKind
impl PartialEq for MirTerminatorKind
Source§fn eq(&self, other: &MirTerminatorKind) -> bool
fn eq(&self, other: &MirTerminatorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MirTerminatorKind
impl Serialize for MirTerminatorKind
impl StructuralPartialEq for MirTerminatorKind
Auto Trait Implementations§
impl Freeze for MirTerminatorKind
impl RefUnwindSafe for MirTerminatorKind
impl Send for MirTerminatorKind
impl Sync for MirTerminatorKind
impl Unpin for MirTerminatorKind
impl UnsafeUnpin for MirTerminatorKind
impl UnwindSafe for MirTerminatorKind
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