Struct std::panic::Location [] [src]

pub struct Location<'a> {
    // some fields omitted
}
Unstable (panic_handler #30449)

: awaiting feedback

A struct containing information about the location of a panic.

Methods

impl<'a> Location<'a>

fn file(&self) -> &str

Unstable (panic_handler #30449)

: awaiting feedback

Returns the name of the source file from which the panic originated.

fn line(&self) -> u32

Unstable (panic_handler #30449)

: awaiting feedback

Returns the line number from which the panic originated.