pub struct Inst {
pub(crate) address: u32,
pub(crate) mnemonic: String,
pub(crate) operands: Vec<String>,
}Fields§
§address: u32§mnemonic: String§operands: Vec<String>Implementations§
Source§impl Inst
impl Inst
pub fn from_nop(inst: NopInst) -> Self
pub fn from_init_stack(inst: InitStackInst) -> Self
pub fn from_call(inst: CallInst) -> Self
pub fn from_syscall(inst: SyscallInst) -> Self
pub fn from_ret(inst: RetInst) -> Self
pub fn from_ret_value(inst: RetValueInst) -> Self
pub fn from_jmp(inst: JmpInst) -> Self
pub fn from_jz(inst: JzInst) -> Self
pub fn from_push_nil(inst: PushNilInst) -> Self
pub fn from_push_true(inst: PushTrueInst) -> Self
pub fn from_push_i32(inst: PushI32Inst) -> Self
pub fn from_push_i16(inst: PushI16Inst) -> Self
pub fn from_push_i8(inst: PushI8Inst) -> Self
pub fn from_push_f32(inst: PushF32Inst) -> Self
pub fn from_push_string(inst: PushStringInst) -> Self
pub fn from_push_global(inst: PushGlobalInst) -> Self
pub fn from_push_stack(inst: PushStackInst) -> Self
pub fn from_push_global_table(inst: PushGlobalTableInst) -> Self
pub fn from_push_local_table(inst: PushLocalTableInst) -> Self
pub fn from_push_top(inst: PushTopInst) -> Self
pub fn from_push_return(inst: PushReturnInst) -> Self
pub fn from_pop_global(inst: PopGlobalInst) -> Self
pub fn from_pop_stack(inst: PopStackInst) -> Self
pub fn from_pop_global_table(inst: PopGlobalTableInst) -> Self
pub fn from_pop_local_table(inst: PopLocalTableInst) -> Self
pub fn from_neg(inst: NegInst) -> Self
pub fn from_add(inst: AddInst) -> Self
pub fn from_sub(inst: SubInst) -> Self
pub fn from_mul(inst: MulInst) -> Self
pub fn from_div(inst: DivInst) -> Self
pub fn from_mod(inst: ModInst) -> Self
pub fn from_bittest(inst: BitTestInst) -> Self
pub fn from_and(inst: AndInst) -> Self
pub fn from_or(inst: OrInst) -> Self
pub fn from_sete(inst: SeteInst) -> Self
pub fn from_setne(inst: SetneInst) -> Self
pub fn from_setg(inst: SetgInst) -> Self
pub fn from_setle(inst: SetleInst) -> Self
pub fn from_setl(inst: SetlInst) -> Self
pub fn from_setge(inst: SetgeInst) -> Self
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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