how to

print-type

Jan 15, 2024
langsrust
1 Minutes
7 Words
1
fn print_type_of<T>(_: &T) {
2
println!("{}", std::any::type_name::<T>())
3
}
Article title:print-type
Article author:Julyfun
Release time:Jan 15, 2024
Copyright 2025
Sitemap