๐Ÿ“ฆ bevyengine / disqualified

Lazily shortens a "fully qualified" Rust type name to remove all module paths.

โ˜… 11 stars โ‘‚ 3 forks ๐Ÿ‘ 11 watching โš–๏ธ Apache License 2.0
๐Ÿ“ฅ Clone https://github.com/bevyengine/disqualified.git
HTTPS git clone https://github.com/bevyengine/disqualified.git
SSH git clone git@github.com:bevyengine/disqualified.git
CLI gh repo clone bevyengine/disqualified
Alice Cecile Alice Cecile Shamelessly steal work from @BenjaminBrienen cc4940d 1 years ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ src
๐Ÿ“„ Cargo.lock
๐Ÿ“„ Cargo.toml
๐Ÿ“„ LICENSE-APACHE
๐Ÿ“„ LICENSE-MIT
๐Ÿ“„ README.md
๐Ÿ“„ RELEASES.md
๐Ÿ“„ rustfmt.toml
๐Ÿ“„ README.md

disqualified

License Crates.io Downloads Docs

Lazily shortens a "fully qualified" 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<core::option::Option<u32>> would be Vec<Option<u32>>. 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 and pull requests are genuinely welcome!