#[repr(u8)]pub enum Stack {
Show 14 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,
Drop = 14,
}
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.
Drop = 14
0x0E
Opcode associated with the Stack::Drop operation.
Trait Implementations§
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<<Stack as ParseOp>::Op, <Stack as ParseOp>::Error>
fn parse_op( &self, bytes: &mut impl Iterator<Item = u8>, ) -> Result<<Stack as ParseOp>::Op, <Stack as ParseOp>::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.
Source§type Error = NotEnoughBytesError
type Error = NotEnoughBytesError
Source§impl PartialOrd for Stack
impl PartialOrd for Stack
impl 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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more