#translation #recast #structures #no-std #off #recasting

no-std recasting

traits for one-to-one recasting of values in data structures

3 unstable releases

0.2.1 Aug 29, 2023
0.2.0 Aug 29, 2023
0.1.0 Aug 20, 2023

#458 in Memory management

Download history 30/week @ 2024-12-17 56/week @ 2024-12-31 182/week @ 2025-01-07 104/week @ 2025-01-14 207/week @ 2025-01-21 354/week @ 2025-01-28 155/week @ 2025-02-04 111/week @ 2025-02-11 51/week @ 2025-02-18 183/week @ 2025-02-25 714/week @ 2025-03-04 4882/week @ 2025-03-11 2730/week @ 2025-03-18 3498/week @ 2025-03-25 5725/week @ 2025-04-01

17,075 downloads per month
Used in 11 crates (via triple_arena)

MIT/Apache

24KB
230 lines

Note that there are "alloc" and "std" feature flags that can be turned off


Recasting

This crate supplies the Recast and Recaster traits. These are currently intended for the translation of arena indexes like those in the triple_arena crate, however they can be used for any purpose of one-to-one recasting of values.

Currently, the traits need to be manually implemented, but there should be a macro in a future version that will automate implementation.

This crate has "std" and "alloc" features that can be turned off

No runtime deps