1 stable release

1.0.0 Sep 22, 2024

#102 in Memory management

Download history 5821/week @ 2024-10-07 4095/week @ 2024-10-14 3110/week @ 2024-10-21 3354/week @ 2024-10-28 5134/week @ 2024-11-04 4098/week @ 2024-11-11 3383/week @ 2024-11-18 7102/week @ 2024-11-25 11581/week @ 2024-12-02 10140/week @ 2024-12-09 10047/week @ 2024-12-16 8745/week @ 2024-12-23 11188/week @ 2024-12-30 13059/week @ 2025-01-06 12806/week @ 2025-01-13 14049/week @ 2025-01-20

52,976 downloads per month
Used in 535 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