pub enum GaiaTerminator {
Jump(String),
Branch {
true_label: String,
false_label: String,
},
Return,
Call {
callee: String,
args_count: usize,
next_block: String,
},
Halt,
}Expand description
Terminator instructions (control flow).
Variants§
Jump(String)
Unconditional jump.
Branch
Conditional branch (true label, false label).
Return
Function return.
Call
Call and jump (callee name, argument count, next label).
Halt
Halt or exit.
Trait Implementations§
Source§impl Clone for GaiaTerminator
impl Clone for GaiaTerminator
Source§fn clone(&self) -> GaiaTerminator
fn clone(&self) -> GaiaTerminator
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 GaiaTerminator
impl Debug for GaiaTerminator
Source§impl<'de> Deserialize<'de> for GaiaTerminator
impl<'de> Deserialize<'de> for GaiaTerminator
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 GaiaTerminator
impl PartialEq for GaiaTerminator
Source§impl Serialize for GaiaTerminator
impl Serialize for GaiaTerminator
impl StructuralPartialEq for GaiaTerminator
Auto Trait Implementations§
impl Freeze for GaiaTerminator
impl RefUnwindSafe for GaiaTerminator
impl Send for GaiaTerminator
impl Sync for GaiaTerminator
impl Unpin for GaiaTerminator
impl UnsafeUnpin for GaiaTerminator
impl UnwindSafe for GaiaTerminator
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