pub trait Args {
// Required methods
fn into_stack(self, stack: &mut Stack) -> VmResult<()>;
fn try_into_vec(self) -> VmResult<Vec<Value>>;
fn count(&self) -> usize;
}
Expand description
Trait for converting arguments onto the stack.
Required Methods§
Sourcefn into_stack(self, stack: &mut Stack) -> VmResult<()>
fn into_stack(self, stack: &mut Stack) -> VmResult<()>
Encode arguments onto a stack.
Sourcefn try_into_vec(self) -> VmResult<Vec<Value>>
fn try_into_vec(self) -> VmResult<Vec<Value>>
Convert arguments into a vector.