#[non_exhaustive]pub enum RegularInstruction {
Simple(SimpleInstruction),
Call(CallInstruction),
}Expand description
An instruction that is not a JumpInstruction.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Simple(SimpleInstruction)
Call(CallInstruction)
Implementations§
Source§impl RegularInstruction
impl RegularInstruction
pub fn dest_info(&self) -> Option<&InsnDestInfo>
Source§impl RegularInstruction
impl RegularInstruction
pub fn dest(&self) -> Option<&TemporaryName>
Trait Implementations§
Source§impl Clone for RegularInstruction
impl Clone for RegularInstruction
Source§fn clone(&self) -> RegularInstruction
fn clone(&self) -> RegularInstruction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegularInstruction
impl Debug for RegularInstruction
Source§impl Display for RegularInstruction
impl Display for RegularInstruction
Source§impl From<CallInstruction> for RegularInstruction
impl From<CallInstruction> for RegularInstruction
Source§fn from(value: CallInstruction) -> Self
fn from(value: CallInstruction) -> Self
Converts to this type from the input type.
Source§impl From<SimpleInstruction> for RegularInstruction
impl From<SimpleInstruction> for RegularInstruction
Source§fn from(value: SimpleInstruction) -> Self
fn from(value: SimpleInstruction) -> Self
Converts to this type from the input type.
Source§impl FromStr for RegularInstruction
impl FromStr for RegularInstruction
Source§impl Hash for RegularInstruction
impl Hash for RegularInstruction
Source§impl PartialEq for RegularInstruction
impl PartialEq for RegularInstruction
impl Eq for RegularInstruction
impl StructuralPartialEq for RegularInstruction
Auto Trait Implementations§
impl Freeze for RegularInstruction
impl RefUnwindSafe for RegularInstruction
impl Send for RegularInstruction
impl Sync for RegularInstruction
impl Unpin for RegularInstruction
impl UnwindSafe for RegularInstruction
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,
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.