#[non_exhaustive]pub struct LookupFrame<'data> {
pub name: &'data [u8],
pub directory: &'data [u8],
pub basename: &'data [u8],
pub line: u32,
pub offset: u64,
pub inlined: bool,
}Expand description
One source frame returned by address lookup.
Every field borrows from the GSYM input, so a frame cannot outlive the reader it came from. Names and paths are raw bytes and are not checked for UTF-8.
line and the two path fields describe this frame’s own
position. For the innermost frame that is the line row covering the looked-up
address; for an outer frame it is the call site recorded by the frame nested
inside it. A zero line and empty paths mean the file has no line information
for the address, or that the caller disabled it in
LookupOptions.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: &'data [u8]Function name borrowed from the string table.
directory: &'data [u8]Source directory borrowed from the string table.
basename: &'data [u8]Source basename borrowed from the string table.
line: u32Source line, or zero when unavailable.
offset: u64Address offset from the beginning of this frame’s function or inline range.
inlined: boolWhether this frame represents an inline invocation.
Trait Implementations§
Source§impl<'data> Clone for LookupFrame<'data>
impl<'data> Clone for LookupFrame<'data>
Source§fn clone(&self) -> LookupFrame<'data>
fn clone(&self) -> LookupFrame<'data>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more