pub trait LocData<T> {
    type Result;

    fn loc(self, flc: &'static ConstLocation) -> Self::Result;
}
Expand description

Extension for Result<T> to allow for custom error handling.

Required Associated Types

The return type of add_info. This can be used to convert between different error types.

Required Methods

Adds a new frame info to the Result<T>. This only happens when the Result<T> is [Err(T)]. Commonly used with the flc! macro.

Implementations on Foreign Types

Implementors