Skip to main content

AsBacktrace

Trait AsBacktrace 

Source
pub trait AsBacktrace {
    // Required method
    fn as_backtrace(&self) -> Option<&Backtrace>;
}
Expand description

View a backtrace-like value as an optional backtrace.

Required Methods§

Source

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.
Source§

impl<T> AsBacktrace for Arc<T>
where T: AsBacktrace,

Available on target_has_atomic=ptr and (crate features alloc) only.
Source§

impl<T> AsBacktrace for Box<T>
where T: AsBacktrace,

Available on crate features alloc only.
Source§

impl<T> AsBacktrace for Rc<T>
where T: AsBacktrace,

Available on crate features alloc only.

Implementors§

Source§

impl AsBacktrace for Backtrace

Available on crate feature std and non-crate feature backtraces-impl-backtrace-crate only.