Trait runestick::GuardedArgs [−][src]
pub trait GuardedArgs { type Guard; unsafe fn unsafe_into_stack(
self,
stack: &mut Stack
) -> Result<Self::Guard, VmError>; fn count(&self) -> usize; }
Expand description
Trait for converting arguments onto the stack.
This can take references, because it is unsafe to call. And should only be implemented in contexts where it can be guaranteed that the references will not outlive the call.
Associated Types
Required methods
Encode arguments onto a stack.
Safety
This is implemented for and allows encoding references on the stack. The returned guard must be dropped before any used references are invalidated.