This commit is contained in:
John Smith
2023-03-01 20:12:30 -05:00
parent 562f9bb7f7
commit dfd1af0c6b
6 changed files with 39 additions and 32 deletions

View File

@@ -336,3 +336,7 @@ pub fn is_debug_backtrace_enabled() -> bool {
}
}
}
pub fn type_name_of_val<T: ?Sized>(_val: &T) -> &'static str {
std::any::type_name::<T>()
}