OptionLocationRef

Type Alias OptionLocationRef 

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

A type alias for an optional reference to a 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 OptionLocationRef<'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.