Struct trace_error::backtrace::SourceBacktrace [] [src]

pub struct SourceBacktrace { /* fields omitted */ }

Backtrace that also contains the exact line and file in which it originated from.

Usually created in a macro using the line!() and file!() macros

Methods

impl SourceBacktrace
[src]

Create a new SourceBacktrace if you know the line and file

Get a reference to the raw Backtrace instance

Get the line at which this backtrace originated from

Get the file path (as a &'static str) in which this backtrace originated from

Format this backtrace with the given formatter and the given options

Trait Implementations

impl Clone for SourceBacktrace
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SourceBacktrace
[src]

Formats the value using the given formatter.

impl From<Backtrace> for SourceBacktrace
[src]

Performs the conversion.