pub struct Dup<const N: u8> { /* private fields */ }Expand description
Duplicate stack items.
The N constant signifies the type of the DUP opcode (e.g. Dup<16> => DUP16).
Implementations§
Trait Implementations§
Source§impl<const N: u8> Instruction for Dup<N>
impl<const N: u8> Instruction for Dup<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 Dup<N>
impl<const N: u8> Eq for Dup<N>
impl<const N: u8> StructuralPartialEq for Dup<N>
Auto Trait Implementations§
impl<const N: u8> Freeze for Dup<N>
impl<const N: u8> RefUnwindSafe for Dup<N>
impl<const N: u8> Send for Dup<N>
impl<const N: u8> Sync for Dup<N>
impl<const N: u8> Unpin for Dup<N>
impl<const N: u8> UnwindSafe for Dup<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