LocData

Trait LocData 

Source
pub trait LocData<T> {
    type Result;

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

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

Required Associated Types§

Source

type Result

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

Required Methods§

Source

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

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§

Source§

impl<T> LocData<T> for Option<T>

Source§

type Result = Result<T, EzError>

Source§

fn loc(self, loc: &'static ConstLocation) -> Self::Result

Source§

impl<T, E> LocData<T> for Result<T, E>
where E: Display,

Source§

type Result = Result<T, EzError>

Source§

fn loc(self, loc: &'static ConstLocation) -> Self::Result

Implementors§

Source§

impl<T> LocData<T> for ez_err::core::Result<T>