From b2ad0299d452eb01cdce7fdba5dba6ce91a6958b Mon Sep 17 00:00:00 2001 From: mohanson Date: Wed, 26 Feb 2025 16:34:47 +0800 Subject: [PATCH] Add more documents --- script/src/types.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/script/src/types.rs b/script/src/types.rs index dbfa632484..812da09850 100644 --- a/script/src/types.rs +++ b/script/src/types.rs @@ -1014,8 +1014,18 @@ where /// When the vm is initialized, arguments are loaded onto the stack. /// This enum specifies how to locate these arguments. +#[derive(Clone, Debug, Eq, Hash, PartialEq)] pub enum VmArgs { - Reader { vm_id: u64, argc: u64, argv: u64 }, + /// Represents reading arguments from other vm. + Reader { + /// An identifier for the virtual machine/process. + vm_id: u64, + /// The number of arguments provided. + argc: u64, + /// The pointer of the actual arguments. + argv: u64, + }, + /// Represents reading arguments from a vector. Vector(Vec), }