Enum essential_constraint_asm::opcode::Stack
source · #[repr(u8)]pub enum Stack {
Push = 1,
Pop = 2,
Dup = 3,
DupFrom = 4,
Swap = 5,
SwapIndex = 6,
Select = 7,
SelectRange = 8,
Repeat = 9,
RepeatEnd = 10,
}
Expand description
Operations related to stack manipulation.
Variants§
Push = 1
0x01
Opcode associated with the Stack::Push operation.
Pop = 2
0x02
Opcode associated with the Stack::Pop operation.
Dup = 3
0x03
Opcode associated with the Stack::Dup operation.
DupFrom = 4
0x04
Opcode associated with the Stack::DupFrom operation.
Swap = 5
0x05
Opcode associated with the Stack::Swap operation.
SwapIndex = 6
0x06
Opcode associated with the Stack::SwapIndex operation.
Select = 7
0x07
Opcode associated with the Stack::Select operation.
SelectRange = 8
0x08
Opcode associated with the Stack::SelectRange operation.
Repeat = 9
0x09
Opcode associated with the Stack::Repeat operation.
RepeatEnd = 10
0x0A
Opcode associated with the Stack::RepeatEnd operation.
Trait Implementations§
source§impl From<Stack> for Constraint
impl From<Stack> for Constraint
source§impl Ord for Stack
impl Ord for Stack
source§impl ParseOp for Stack
impl ParseOp for Stack
source§fn parse_op(
&self,
bytes: &mut impl Iterator<Item = u8>,
) -> Result<Self::Op, Self::Error>
fn parse_op( &self, bytes: &mut impl Iterator<Item = u8>, ) -> Result<Self::Op, Self::Error>
Attempt to parse the operation associated with the opcode from the given bytes.
Only consumes the bytes necessary to construct any associated data.
Returns an error in the case that the given bytes
iterator
contains insufficient bytes to parse the op.
§type Error = NotEnoughBytesError
type Error = NotEnoughBytesError
source§impl PartialEq for Stack
impl PartialEq for Stack
source§impl PartialOrd for Stack
impl PartialOrd for Stack
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Stack
impl Eq for Stack
impl StructuralPartialEq for Stack
Auto Trait Implementations§
impl Freeze for Stack
impl RefUnwindSafe for Stack
impl Send for Stack
impl Sync for Stack
impl Unpin for Stack
impl UnwindSafe for Stack
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)