#translate #recast #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

#2312 in Data structures

Download history 137/week @ 2024-07-22 52/week @ 2024-07-29 70/week @ 2024-08-05 44/week @ 2024-08-12 145/week @ 2024-08-19 82/week @ 2024-08-26 24/week @ 2024-09-02 116/week @ 2024-09-09 101/week @ 2024-09-16 127/week @ 2024-09-23 44/week @ 2024-09-30 82/week @ 2024-10-07 67/week @ 2024-10-14 56/week @ 2024-10-21 43/week @ 2024-10-28 92/week @ 2024-11-04

258 downloads per month
Used in 9 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