[−][src]Enum rustpython_vm::bytecode::Instruction
A Single bytecode instruction.
Variants
Fields of ImportFrom
name: String
Fields of DeleteName
name: String
Fields of StoreAttr
name: String
Fields of DeleteAttr
name: String
Fields of LoadConst
value: Constant
Fields of UnaryOperation
op: UnaryOperator
Fields of BinaryOperation
op: BinaryOperator
inplace: bool
Fields of LoadAttr
name: String
Fields of CompareOperation
Fields of Rotate
amount: usize
Fields of Jump
target: Label
Pop the top of the stack, and jump if this value is true.
Fields of JumpIfTrue
target: Label
Pop the top of the stack, and jump if this value is false.
Fields of JumpIfFalse
target: Label
Peek at the top of the stack, and jump if this value is true. Otherwise, pop top of stack.
Fields of JumpIfTrueOrPop
target: Label
Peek at the top of the stack, and jump if this value is false. Otherwise, pop top of stack.
Fields of JumpIfFalseOrPop
target: Label
Fields of CallFunction
typ: CallType
Fields of ForIter
target: Label
Setup a finally handler, which will be called whenever one of this events occurs:
- the block is popped
- the function returns
- an exception is returned
Fields of SetupFinally
handler: Label
Enter a finally block, without returning, excepting, just because we are there.
Marker bytecode for the end of a finally sequence. When this bytecode is executed, the eval loop does one of those things:
- Continue at a certain bytecode position
- Propagate the exception
- Return from a function
- Do nothing at all, just continue
Fields of SetupExcept
handler: Label
Fields of SetupWith
end: Label
Fields of Raise
argc: usize
Fields of BuildString
size: usize
Fields of BuildSlice
size: usize
Fields of ListAppend
i: usize
Fields of SetAdd
i: usize
Fields of MapAdd
i: usize
Fields of UnpackSequence
size: usize
Fields of FormatValue
conversion: Option<ConversionFlag>
Fields of Reverse
amount: usize
Fields of SetupAsyncWith
end: Label
Trait Implementations
impl Clone for Instruction
[src]
fn clone(&self) -> Instruction
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Instruction
[src]
impl<'de> Deserialize<'de> for Instruction
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<Instruction, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Instruction, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl PartialEq<Instruction> for Instruction
[src]
fn eq(&self, other: &Instruction) -> bool
[src]
fn ne(&self, other: &Instruction) -> bool
[src]
impl Serialize for Instruction
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralPartialEq for Instruction
[src]
Auto Trait Implementations
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,