pub enum IRTerminator {
Return,
Jump(String),
JumpIf {
then_block: String,
else_block: String,
},
Match {
cases: Vec<(IRPattern, String)>,
default: Option<String>,
},
}Expand description
Block terminators
Variants§
Return
Return from function
Jump(String)
Unconditional jump
JumpIf
Conditional jump
Match
Pattern match
Trait Implementations§
Source§impl Clone for IRTerminator
impl Clone for IRTerminator
Source§fn clone(&self) -> IRTerminator
fn clone(&self) -> IRTerminator
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 moreAuto Trait Implementations§
impl Freeze for IRTerminator
impl RefUnwindSafe for IRTerminator
impl Send for IRTerminator
impl Sync for IRTerminator
impl Unpin for IRTerminator
impl UnwindSafe for IRTerminator
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