relay_log::sentry

Function parse_type_from_debug

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");