Skip to main content

drop_top

Function drop_top 

Source
pub unsafe fn drop_top(stack: Stack) -> Stack
Expand description

Pop the top value and drop it (decrement Arc refcount for heap types).

Private helper shared by patch_seq_drop_op and any Rust-side caller that needs to discard the top of the stack without materializing a Value.

ยงSafety

Stack must have at least one value.