pub struct BacktraceFrame { /* private fields */ }
Available on crate feature
rt
only.Expand description
A backtrace frame.
This struct represents one stack frame in a captured backtrace, similar to [backtrace::BacktraceFrame
].
Implementations§
Source§impl BacktraceFrame
impl BacktraceFrame
Sourcepub fn ip(&self) -> *mut c_void
pub fn ip(&self) -> *mut c_void
Return the instruction pointer of this frame.
See the ABI docs for your platform for the exact meaning.
Sourcepub fn symbol_address(&self) -> *mut c_void
pub fn symbol_address(&self) -> *mut c_void
Returns the starting symbol address of the frame of this function.
Sourcepub fn symbols(&self) -> impl Iterator<Item = &BacktraceSymbol>
pub fn symbols(&self) -> impl Iterator<Item = &BacktraceSymbol>
Return an iterator over the symbols of this backtrace frame.
Due to inlining, it is possible for there to be multiple BacktraceSymbol
items relating
to a single frame. The first symbol listed is the “innermost function”,
whereas the last symbol is the outermost (last caller).
Trait Implementations§
Source§impl Clone for BacktraceFrame
impl Clone for BacktraceFrame
Source§fn clone(&self) -> BacktraceFrame
fn clone(&self) -> BacktraceFrame
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for BacktraceFrame
impl RefUnwindSafe for BacktraceFrame
impl Send for BacktraceFrame
impl Sync for BacktraceFrame
impl Unpin for BacktraceFrame
impl UnwindSafe for BacktraceFrame
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