Skip to main content

clone_stack_value

Function clone_stack_value 

Source
pub unsafe fn clone_stack_value(sv: u64) -> u64
Expand 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.