push

Function push 

Source
pub unsafe fn push(stack: Stack, value: Value) -> Stack
Expand description

Push a value onto the stack

Takes ownership of the value and creates a new StackNode from the pool. Returns a pointer to the new top of the stack.

§Safety

Stack pointer must be valid (or null for empty stack)

§Performance

Uses thread-local pool for ~10x speedup over Box::new()