https://github.com/jakobhellermann/pretty-type-name
https://github.com/jakobhellermann/pretty-type-name
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/jakobhellermann/pretty-type-name
- Owner: jakobhellermann
- License: mit
- Created: 2021-02-17T22:49:21.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-24T12:56:21.000Z (over 3 years ago)
- Last Synced: 2025-04-12T23:53:51.984Z (about 1 year ago)
- Language: Rust
- Size: 7.81 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pretty-type-name
A shorter version of `std::any::type_name`.
## Example
```rust
use pretty_type_name::pretty_type_name;
mod foo {
pub mod bar {
pub struct X(T);
}
pub struct Y;
}
println!(pretty_type_name::>());
// prints `X`
```