Crates.io | fixed_typemap |
lib.rs | fixed_typemap |
version | 0.1.0 |
source | src |
created_at | 2021-12-26 19:34:18.19654 |
updated_at | 2021-12-26 19:34:18.19654 |
description | A typemap which can allocate types inline with zero overhead and allow for iteration by traits |
homepage | https://docs.rs/fixed_typemap |
repository | https://github.com/ahicks92/fixed_typemap |
max_upload_size | |
id | 503420 |
size | 31,170 |
Implements typemaps that support a lot of extra funcctionality using procedural macros. docs.rs has a lot more than this readme, including a mini-tutorial and worked example. You can use this to:
HashMap<TypeId, Box<dyn MyTrait>>
, bringing the rest of the functionality along for the ride and also let
you do as many traits as you want at once).HashMap
to enable storing any type.no_std
support is WIP in the sense that it's basically done but I don't know enough to reliably finish it. Doing so
shouldn't be hard and I'm very open to contributions which do so and preferrably provide CI configuration.