1 stable release

1.0.0 Sep 22, 2024

#101 in Memory management

Download history 4188/week @ 2024-10-11 3263/week @ 2024-10-18 3494/week @ 2024-10-25 3988/week @ 2024-11-01 4691/week @ 2024-11-08 3366/week @ 2024-11-15 4048/week @ 2024-11-22 12541/week @ 2024-11-29 10272/week @ 2024-12-06 10119/week @ 2024-12-13 8579/week @ 2024-12-20 10127/week @ 2024-12-27 12588/week @ 2025-01-03 13390/week @ 2025-01-10 13967/week @ 2025-01-17 10379/week @ 2025-01-24

51,949 downloads per month
Used in 545 crates (10 directly)

MIT/Apache

10KB
157 lines

disqualified

License Crates.io Downloads Docs

Lazily shortens a 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!

No runtime deps

Features