pretty-type-name

Crates.iopretty-type-name
lib.rspretty-type-name
version1.0.1
sourcesrc
created_at2021-02-18 10:10:37.6003
updated_at2023-01-24 12:56:23.690324
descriptiona shorter version of std::any::type_name
homepage
repositoryhttps://github.com/jakobhellermann/pretty-type-name
max_upload_size
id356972
size6,638
Jakob Hellermann (jakobhellermann)

documentation

README

pretty-type-name

A shorter version of std::any::type_name.

Example

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>`
Commit count: 11

cargo fmt