pub fn map_into_err<S: ErrKindExt, T: Into<S>>( loc: &'static str, ) -> impl Fn(T) -> Error
Maps the given error to an error.