https://github.com/bevyengine/disqualified
Lazily shortens a "fully qualified" Rust type name to remove all module paths.
https://github.com/bevyengine/disqualified
Last synced: 8 months ago
JSON representation
Lazily shortens a "fully qualified" Rust type name to remove all module paths.
- Host: GitHub
- URL: https://github.com/bevyengine/disqualified
- Owner: bevyengine
- License: apache-2.0
- Created: 2024-09-23T14:43:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-23T14:46:15.000Z (about 1 year ago)
- Last Synced: 2025-04-13T04:51:56.640Z (8 months ago)
- Language: Rust
- Size: 6.84 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# `disqualified`

[](https://crates.io/crates/disqualified)
[](https://crates.io/crates/disqualified)
[](https://docs.rs/disqualified/latest/disqualified/)
Lazily shortens a ["fully qualified"](https://en.wikipedia.org/wiki/Fully_qualified_name) type name to remove all module paths. The short name of a type is its full name as returned by [`core::any::type_name`], but with the prefix of all paths removed. For example, the short name of `alloc::vec::Vec>` would be `Vec>`. Shortening is performed lazily without allocation.
## Contributing
This crate is maintained by the Bevy organization, and is intended to be tiny, stable, zero-dependency, and broadly useful.
[Issues](https://github.com/bevyengine/disqualified/issues) and [pull requests](https://github.com/bevyengine/disqualified/pulls) are genuinely welcome!