pub struct ConstructorSpan {
pub constructor_id: u32,
pub table_id: u32,
pub source: &'static str,
}Expand description
Provenance metadata identifying which SLEIGH constructor produced an
Instruction. Audit P2 #3 — gives the analyst a way to trace
surprising P-code back to its source rule when debugging lifter
divergences. None means the producing decoder pre-dated this
metadata (legacy generated crates) or the decoder declined to emit it.
Fields§
§constructor_id: u32Numeric constructor index assigned by the SLEIGH compiler.
table_id: u32Numeric table id the constructor belongs to.
source: &'static strFree-form source location string (file:line) emitted by codegen. Empty string when the codegen did not record one.
Trait Implementations§
Source§impl Clone for ConstructorSpan
impl Clone for ConstructorSpan
Source§fn clone(&self) -> ConstructorSpan
fn clone(&self) -> ConstructorSpan
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 ConstructorSpan
impl Debug for ConstructorSpan
Source§impl PartialEq for ConstructorSpan
impl PartialEq for ConstructorSpan
impl Eq for ConstructorSpan
impl StructuralPartialEq for ConstructorSpan
Auto Trait Implementations§
impl Freeze for ConstructorSpan
impl RefUnwindSafe for ConstructorSpan
impl Send for ConstructorSpan
impl Sync for ConstructorSpan
impl Unpin for ConstructorSpan
impl UnsafeUnpin for ConstructorSpan
impl UnwindSafe for ConstructorSpan
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