Function swap

Source
pub fn swap<const N: usize, WIRE: InterpreterTypes, H: ?Sized>(
    context: InstructionContext<'_, H, WIRE>,
)
Expand description

Implements the SWAP1-SWAP16 instructions.

Swaps the top stack item with the Nth stack item.