logo
pub fn parse_type_from_debug(d: &str) -> &str
Expand description

Parse the types name from Debug output.

Examples

use sentry::parse_type_from_debug;

let err = format!("{:?}", "NaN".parse::<usize>().unwrap_err());
assert_eq!(parse_type_from_debug(&err), "ParseIntError");