#recast #translate #no-std

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

#315 in Memory management

Download history 38/week @ 2023-11-03 43/week @ 2023-11-10 55/week @ 2023-11-17 53/week @ 2023-11-24 59/week @ 2023-12-01 305/week @ 2023-12-08 244/week @ 2023-12-15 154/week @ 2023-12-22 28/week @ 2023-12-29 55/week @ 2024-01-05 62/week @ 2024-01-12 77/week @ 2024-01-19 30/week @ 2024-01-26 18/week @ 2024-02-02 42/week @ 2024-02-09 99/week @ 2024-02-16

189 downloads per month
Used in 8 crates (via triple_arena)

MIT/Apache

24KB
230 lines

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


lib.rs:

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

No runtime deps