pub fn gen_magnus_error_converter(error: &ErrorDef, core_import: &str) -> String
Generate a converter function that maps a core error to magnus::Error.
magnus::Error