pub struct VmInstr(pub BTreeMap<String, RuntimeValue>);Expand description
One VM instruction. We capture the op name + remaining keys as a
raw JSON object since the op-arg shape varies per op. Consumers
that need typed access can match on op and decode manually, or
use the helpers in crate::vm.
Tuple Fields§
§0: BTreeMap<String, RuntimeValue>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VmInstr
impl<'de> Deserialize<'de> for VmInstr
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 Forget for VmInstr
impl Freeze for VmInstrwhere
*const LeafNode<String, RuntimeValue> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, RuntimeValue)>>: Freeze,
impl Move for VmInstr
impl RefUnwindSafe for VmInstr
impl Send for VmInstrwhere
NodeRef<Owned, String, RuntimeValue, LeafOrInternal>: Send,
BoxRaw<(String, RuntimeValue)>: Send,
impl Sync for VmInstrwhere
NodeRef<Owned, String, RuntimeValue, LeafOrInternal>: Sync,
BoxRaw<(String, RuntimeValue)>: Sync,
impl Unpin for VmInstr
impl UnsafeUnpin for VmInstrwhere
*const LeafNode<String, RuntimeValue> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, RuntimeValue)>>: UnsafeUnpin,
impl UnwindSafe for VmInstr
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