Struct std::panic::Location1.10.0 [] [src]

pub struct Location<'a> {
    // some fields omitted
}

A struct containing information about the location of a panic.

Methods

impl<'a> Location<'a>
[src]

fn file(&self) -> &str

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

fn line(&self) -> u32

Returns the line number from which the panic originated.