pub struct Instruction {
pub offset: u64,
pub operation: Value,
pub context: Option<Value>,
}Fields§
§offset: u64§operation: Value§context: Option<Value>Implementations§
Source§impl Instruction
impl Instruction
pub fn mnemonic(&self) -> Option<&str>
pub fn arguments(&self) -> Vec<&str>
pub fn source_location(&self) -> Option<SourceLocation>
Sourcepub fn source_locations(&self) -> Vec<SourceLocation>
pub fn source_locations(&self) -> Vec<SourceLocation>
Returns every source alternative attached to this instruction.
Sourcepub fn function_invocations(&self) -> Vec<FunctionIdentity>
pub fn function_invocations(&self) -> Vec<FunctionIdentity>
Returns every possible function invocation attached to this instruction.
Sourcepub fn function_exit(&self) -> Option<FunctionExit>
pub fn function_exit(&self) -> Option<FunctionExit>
Returns the function exit attached to this instruction.
Sourcepub fn modifier_depth(&self) -> Option<i64>
pub fn modifier_depth(&self) -> Option<i64>
Legacy source-map modifier depth, when this instruction was adapted from one.
Trait Implementations§
Source§impl Clone for Instruction
impl Clone for Instruction
Source§impl Debug for Instruction
impl Debug for Instruction
Source§impl<'de> Deserialize<'de> for Instruction
impl<'de> Deserialize<'de> for Instruction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Instruction
Source§impl PartialEq for Instruction
impl PartialEq for Instruction
Source§impl Serialize for Instruction
impl Serialize for Instruction
impl StructuralPartialEq for Instruction
Auto Trait Implementations§
impl Freeze for Instruction
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnsafeUnpin for Instruction
impl UnwindSafe for Instruction
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