OptionalPanicLocation

Type Alias OptionalPanicLocation 

Source
pub type OptionalPanicLocation<'a, 'b> = Option<&'a Location<'b>>;
Expand description

A type alias for an optional reference to a panic location.

The lifetimes 'a and 'b are tied to the PanicHookInfo from which the location information is sourced. This ensures that the reference does not outlive the panic information itself, preventing dangling pointers.

Aliased Type§

pub enum OptionalPanicLocation<'a, 'b> {
    None,
    Some(&'a Location<'b>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(&'a Location<'b>)

Some value of type T.