[−][src]Enum rustpython_bytecode::bytecode::Instruction
A Single bytecode instruction.
Variants
Fields of ImportFrom
name: StringFields of DeleteName
name: StringFields of StoreAttr
name: StringFields of DeleteAttr
name: StringFields of LoadConst
value: ConstantFields of UnaryOperation
op: UnaryOperatorFields of BinaryOperation
op: BinaryOperatorinplace: boolFields of LoadAttr
name: StringFields of CompareOperation
Fields of Rotate
amount: usizeFields of Jump
target: LabelPop the top of the stack, and jump if this value is true.
Fields of JumpIfTrue
target: LabelPop the top of the stack, and jump if this value is false.
Fields of JumpIfFalse
target: LabelPeek at the top of the stack, and jump if this value is true. Otherwise, pop top of stack.
Fields of JumpIfTrueOrPop
target: LabelPeek at the top of the stack, and jump if this value is false. Otherwise, pop top of stack.
Fields of JumpIfFalseOrPop
target: LabelFields of CallFunction
typ: CallTypeFields of ForIter
target: LabelSetup 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: LabelEnter 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: LabelFields of SetupWith
end: LabelFields of Raise
argc: usizeFields of BuildString
size: usizeFields of BuildSlice
size: usizeFields of ListAppend
i: usizeFields of SetAdd
i: usizeFields of MapAdd
i: usizeFields of UnpackSequence
size: usizeFields of FormatValue
conversion: Option<ConversionFlag>Fields of Reverse
amount: usizeFields of SetupAsyncWith
end: LabelTrait 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<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__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::Ok, __S::Error> where
__S: Serializer, [src]
__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> 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>,