pub enum AnyOpcode {
Real(Opcode),
Pseudo(PseudoOpcode),
}Variants§
Real(Opcode)
Pseudo(PseudoOpcode)
Implementations§
Source§impl AnyOpcode
impl AnyOpcode
Sourcepub const fn real(self) -> Option<Opcode>
pub const fn real(self) -> Option<Opcode>
Gets the inner value of Self::Real.
Sourcepub const fn pseudo(self) -> Option<PseudoOpcode>
pub const fn pseudo(self) -> Option<PseudoOpcode>
Gets the inner value of Self::Pseudo.
Sourcepub const fn expect_real(self) -> Opcode
pub const fn expect_real(self) -> Opcode
Same as Self::real but panics if wasn’t called on Self::Real.
§Panics
If was called on something else other than Self::Real.
Sourcepub const fn expect_pseudo(self) -> PseudoOpcode
pub const fn expect_pseudo(self) -> PseudoOpcode
Same as Self::pseudo but panics if wasn’t called on Self::Pseudo.
§Panics
If was called on something else other than Self::Pseudo.
pub const fn has_arg(&self) -> bool
pub const fn has_jump(&self) -> bool
pub const fn has_free(&self) -> bool
pub const fn has_local(&self) -> bool
pub const fn has_name(&self) -> bool
pub const fn has_const(&self) -> bool
pub const fn is_instrumented(&self) -> bool
pub const fn is_block_push(&self) -> bool
pub fn stack_effect_jump(&self, oparg: u32) -> i32
pub fn stack_effect(&self, oparg: u32) -> i32
pub const fn deopt(&self) -> Option<AnyOpcode>
Trait Implementations§
impl Copy for AnyOpcode
impl Eq for AnyOpcode
Source§impl From<AnyInstruction> for AnyOpcode
impl From<AnyInstruction> for AnyOpcode
Source§fn from(value: AnyInstruction) -> AnyOpcode
fn from(value: AnyInstruction) -> AnyOpcode
Converts to this type from the input type.
Source§impl From<AnyOpcode> for AnyInstruction
impl From<AnyOpcode> for AnyInstruction
Source§fn from(value: AnyOpcode) -> AnyInstruction
fn from(value: AnyOpcode) -> AnyInstruction
Converts to this type from the input type.
Source§impl From<PseudoOpcode> for AnyOpcode
impl From<PseudoOpcode> for AnyOpcode
Source§fn from(value: PseudoOpcode) -> AnyOpcode
fn from(value: PseudoOpcode) -> AnyOpcode
Converts to this type from the input type.
impl StructuralPartialEq for AnyOpcode
Auto Trait Implementations§
impl Freeze for AnyOpcode
impl RefUnwindSafe for AnyOpcode
impl Send for AnyOpcode
impl Sync for AnyOpcode
impl Unpin for AnyOpcode
impl UnsafeUnpin for AnyOpcode
impl UnwindSafe for AnyOpcode
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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