Crates.io | pretty-type-name |
lib.rs | pretty-type-name |
version | 1.0.1 |
source | src |
created_at | 2021-02-18 10:10:37.6003 |
updated_at | 2023-01-24 12:56:23.690324 |
description | a shorter version of std::any::type_name |
homepage | |
repository | https://github.com/jakobhellermann/pretty-type-name |
max_upload_size | |
id | 356972 |
size | 6,638 |
A shorter version of std::any::type_name
.
use pretty_type_name::pretty_type_name;
mod foo {
pub mod bar {
pub struct X<T>(T);
}
pub struct Y;
}
println!(pretty_type_name::<foo::bar::X<foo::Y>>());
// prints `X<Y>`