pub struct InstructionSequence { /* private fields */ }Implementations§
Source§impl InstructionSequence
impl InstructionSequence
pub fn new() -> InstructionSequence
pub fn addop( &mut self, opcode: i32, oparg: i32, lineno: i32, col_offset: i32, end_lineno: i32, end_col_offset: i32, ) -> Result<(), InternalError>
pub fn new_label(&mut self) -> i32
pub fn use_label(&mut self, label: i32) -> Result<(), InternalError>
pub fn apply_label_map(&mut self)
pub fn add_nested(&mut self, nested: InstructionSequence)
pub fn nested(&self) -> &[InstructionSequence]
pub fn nested_mut(&mut self) -> &mut Vec<InstructionSequence>
pub fn python_instructions(&self) -> Vec<PythonInstruction>
Trait Implementations§
Source§impl Clone for InstructionSequence
impl Clone for InstructionSequence
Source§fn clone(&self) -> InstructionSequence
fn clone(&self) -> InstructionSequence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for InstructionSequence
impl Default for InstructionSequence
Source§fn default() -> InstructionSequence
fn default() -> InstructionSequence
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InstructionSequence
impl RefUnwindSafe for InstructionSequence
impl Send for InstructionSequence
impl Sync for InstructionSequence
impl Unpin for InstructionSequence
impl UnsafeUnpin for InstructionSequence
impl UnwindSafe for InstructionSequence
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Helper for T
Source§impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
fn imaginary_into(self) -> U
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> ⓘ
Converts
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> ⓘ
Converts
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