#[repr(u8)]pub enum Stack {
Show 13 variants
Push = 1,
Pop = 2,
Dup = 3,
DupFrom = 4,
Swap = 5,
SwapIndex = 6,
Select = 7,
SelectRange = 8,
Repeat = 9,
RepeatEnd = 10,
Reserve = 11,
Load = 12,
Store = 13,
}
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.
Reserve = 11
0x0B
Opcode associated with the Stack::Reserve operation.
Load = 12
0x0C
Opcode associated with the Stack::Load operation.
Store = 13
0x0D
Opcode associated with the Stack::Store 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.