range-enum
enum-map
range-enum | enum-map | |
---|---|---|
1 | 3 | |
0 | 21 | |
- | - | |
10.0 | 0.0 | |
over 1 year ago | - | |
Rust | Rust | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
range-enum
-
(Tip of my fingers) Library with a macro to create an enum from a range
I somewhat enjoy writing macros so i threw something together for you https://github.com/Strosel/range-enum
enum-map
-
(Tip of my fingers) Library with a macro to create an enum from a range
I know I could write (and have written) this enum myself by hand. I don't want to use a newtype around u8 or something like that because I want the static guarantees of an enum — plus I'm using EnumMap to create statically-allocated maps with enum keys, so I'm hoping whatever this library was will play nicely with it.
-
Is std::collections::HashMap optimized for enums?
What you might want is enum-map instead.
-
What's your favourite under-rated Rust crate and why?
enum_map is great for dense maps where the keys are the variants of a discriminant-only enum.
What are some alternatives?
strum - A small rust library for adding custom derives to enums
parse-size - Parse byte size into integer accurately.
structopt - Parse command line arguments by defining a struct.
serde-plain - A serde serializer that serializes a subset of types into plain strings
actix-web-static-files - actix-web static files as resources support
NumToA - An efficient method of heaplessly converting numbers into their string representations, storing the representation within a reusable byte array.
wg-allocators - Home of the Allocators working group: Paving a path for a standard set of allocator traits to be used in collections!
schemafy - Crate for generating rust types from a json schema
fuzzcheck-rs - Modular, structure-aware, and feedback-driven fuzzing engine for Rust functions
futures-batch - An adapter for futures, which chunks up elements and flushes them after a timeout — or when the buffer is full. (Formerly known as tokio-batch.)
base_custom - Rust implementation of custom numeric base conversion.
autocxx - Tool for safe ergonomic Rust/C++ interop driven from existing C++ headers