Function sentry::parse_type_from_debug
source · [−]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");