pub unsafe fn clone_stack_value(sv: StackValue) -> StackValueExpand description
Clone a tagged StackValue, handling heap types.
- Int, Bool: bitwise copy (no allocation)
- Heap types: clone the Value and re-box
ยงSafety
The StackValue must contain valid tagged data.