Struct std::panic::PanicInfo 1.10.0
[−]
[src]
pub struct PanicInfo<'a> { /* fields omitted */ }A struct providing information about a panic.
Methods
impl<'a> PanicInfo<'a>[src]
fn payload(&self) -> &Any + Send
Returns the payload associated with the panic.
This will commonly, but not always, be a &'static str or String.
fn location(&self) -> Option<&Location>
Returns information about the location from which the panic originated, if available.
This method will currently always return Some, but this may change
in future versions.