pub struct Swap<const N: u8> { /* private fields */ }Expand description
Exchange stack items.
The N constant signifies the type of the SWAP opcode (e.g. Swap<16> => SWAP16).
Implementations§
Trait Implementations§
Source§impl<const N: u8> Instruction for Swap<N>
impl<const N: u8> Instruction for Swap<N>
Source§fn is_push(&self) -> bool
fn is_push(&self) -> bool
Returns a value signifying whether this instruction is of the type
PUSHx. Read moreSource§fn is_dup(&self) -> bool
fn is_dup(&self) -> bool
Returns a value signifying whether this instruction is of the type
DUPx. Read moreSource§fn is_swap(&self) -> bool
fn is_swap(&self) -> bool
Returns a value signifying whether this instruction is of the type
SWAPx. Read moreimpl<const N: u8> Copy for Swap<N>
impl<const N: u8> Eq for Swap<N>
impl<const N: u8> StructuralPartialEq for Swap<N>
Auto Trait Implementations§
impl<const N: u8> Freeze for Swap<N>
impl<const N: u8> RefUnwindSafe for Swap<N>
impl<const N: u8> Send for Swap<N>
impl<const N: u8> Sync for Swap<N>
impl<const N: u8> Unpin for Swap<N>
impl<const N: u8> UnwindSafe for Swap<N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more