Function map_err

Source
pub fn map_err<T: ErrKindExt>(loc: &'static str) -> impl Fn(T) -> Error
Expand description

Maps the given error to an error.