pub struct SourceLine {
pub line: u16,
pub file: Option<u16>,
pub offset: u32,
}Expand description
The source line of one declaration, definition or instruction.
Fields§
§line: u16The line number (u16 at offset 0 of the record); 0 where file is None.
file: Option<u16>The source file, by its place in DebugInfo::files (u16 at offset 2); None (0xffff) for a record with
no source line, as a declaration has.
offset: u32The byte offset of the record’s token from the program’s version token (u32 at offset 4).
Trait Implementations§
Source§impl Clone for SourceLine
impl Clone for SourceLine
Source§impl Debug for SourceLine
impl Debug for SourceLine
impl Eq for SourceLine
Source§impl PartialEq for SourceLine
impl PartialEq for SourceLine
impl StructuralPartialEq for SourceLine
Auto Trait Implementations§
impl Forget for SourceLine
impl Freeze for SourceLine
impl RefUnwindSafe for SourceLine
impl Send for SourceLine
impl Sync for SourceLine
impl Unpin for SourceLine
impl UnsafeUnpin for SourceLine
impl UnwindSafe for SourceLine
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