pub struct InstructionSequence { /* private fields */ }Implementations§
Source§impl InstructionSequence
impl InstructionSequence
pub fn new() -> Self
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: Self)
pub fn nested(&self) -> &[Self]
pub fn nested_mut(&mut self) -> &mut Vec<Self>
pub fn python_instructions(&self) -> Vec<PythonInstruction>
Trait Implementations§
Source§impl Clone for InstructionSequence
impl Clone for InstructionSequence
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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