pub trait AsBacktrace {
// Required method
fn as_backtrace(&self) -> Option<&Backtrace>;
}Expand description
View a backtrace-like value as an optional backtrace.
Required Methods§
Sourcefn as_backtrace(&self) -> Option<&Backtrace>
fn as_backtrace(&self) -> Option<&Backtrace>
Retrieve the optional backtrace
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl AsBacktrace for Option<Backtrace>
Available on crate features std only.
impl AsBacktrace for Option<Backtrace>
Available on crate features
std only.fn as_backtrace(&self) -> Option<&Backtrace>
Source§impl<T> AsBacktrace for Arc<T>where
T: AsBacktrace,
Available on target_has_atomic=ptr and (crate features alloc) only.
impl<T> AsBacktrace for Arc<T>where
T: AsBacktrace,
Available on
target_has_atomic=ptr and (crate features alloc) only.fn as_backtrace(&self) -> Option<&Backtrace>
Source§impl<T> AsBacktrace for Box<T>where
T: AsBacktrace,
Available on crate features alloc only.
impl<T> AsBacktrace for Box<T>where
T: AsBacktrace,
Available on crate features
alloc only.fn as_backtrace(&self) -> Option<&Backtrace>
Source§impl<T> AsBacktrace for Rc<T>where
T: AsBacktrace,
Available on crate features alloc only.
impl<T> AsBacktrace for Rc<T>where
T: AsBacktrace,
Available on crate features
alloc only.fn as_backtrace(&self) -> Option<&Backtrace>
Implementors§
impl AsBacktrace for Backtrace
Available on crate feature
std and non-crate feature backtraces-impl-backtrace-crate only.