pub struct Push<const N: usize>(/* private fields */);Expand description
Place item on stack.
The N constant signifies the type of the PUSH opcode (e.g. Push<32> => PUSH32).
Implementations§
Trait Implementations§
Source§impl<const N: usize> Instruction for Push<N>
impl<const N: usize> Instruction for Push<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: usize> Copy for Push<N>
impl<const N: usize> Eq for Push<N>
impl<const N: usize> StructuralPartialEq for Push<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for Push<N>
impl<const N: usize> RefUnwindSafe for Push<N>
impl<const N: usize> Send for Push<N>
impl<const N: usize> Sync for Push<N>
impl<const N: usize> Unpin for Push<N>
impl<const N: usize> UnwindSafe for Push<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