pub enum Inst {
I32Const(i32),
I32Add,
StrConst(String),
PrintI32,
PrintStr,
Call(usize),
Return,
}
Expand description
命令
Variants§
I32Const(i32)
I32Add
StrConst(String)
PrintI32
PrintStr
Call(usize)
PC + 1 をスタックに push したうえで、指定された番地にジャンプする
Return
スタックトから pop した番地にジャンプする
Trait Implementations§
source§impl<'de> Deserialize<'de> for Inst
impl<'de> Deserialize<'de> for Inst
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
Auto Trait Implementations§
impl Freeze for Inst
impl RefUnwindSafe for Inst
impl Send for Inst
impl Sync for Inst
impl Unpin for Inst
impl UnwindSafe for Inst
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