Crates.io | recasting |
lib.rs | recasting |
version | 0.2.1 |
source | src |
created_at | 2023-08-20 03:55:43.955822 |
updated_at | 2023-08-29 07:44:27.060639 |
description | traits for one-to-one recasting of values in data structures |
homepage | |
repository | https://github.com/AaronKutch/recasting |
max_upload_size | |
id | 949131 |
size | 28,248 |
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