pub struct DebugInfo {
pub name: Box<str>,
pub filename: Option<Rc<str>>,
pub positions: Box<[SourcePosition]>,
pub definition: Option<(u32, u32)>,
}Expand description
Source information kept for the disassembler and error messages.
Fields§
§name: Box<str>§filename: Option<Rc<str>>The script or module the function belongs to, for import().
positions: Box<[SourcePosition]>Where the instructions came from, sorted by pc: each entry holds
for its instruction and the ones after it up to the next. Empty when
the producer recorded none.
definition: Option<(u32, u32)>The one-based line and column of the function’s definition, for
Function.prototype.lineNumber and columnNumber.
Implementations§
Trait Implementations§
impl Eq for DebugInfo
impl StructuralPartialEq for DebugInfo
Auto Trait Implementations§
impl !Send for DebugInfo
impl !Sync for DebugInfo
impl Freeze for DebugInfo
impl RefUnwindSafe for DebugInfo
impl Unpin for DebugInfo
impl UnsafeUnpin for DebugInfo
impl UnwindSafe for DebugInfo
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