Created
July 11, 2021 08:34
-
-
Save yossan/cb92a1d953d5e3b2456b5549a038a46a to your computer and use it in GitHub Desktop.
print type name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn print_type_name<T>(_: T) -> &'static str { | |
std::any::type_name::<T>() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment