I have some code which will print the TypeId
of a variable passed in.
fn typeid<T: std::any::Any>(_: &T) {
println!("{:?}", std::any::Type::of::<T>());
}
This works, but gives me a numeric id for the type. Is there a way to output the actual type? For example 1716249077420000607 is f64 (IIRC) or do I need to create a physical list (possibly as an enum) and output that value as part of a match construct?