Crates.io | enumber |
lib.rs | enumber |
version | 0.3.1 |
source | src |
created_at | 2020-11-24 17:11:46.572406 |
updated_at | 2024-04-16 17:08:17.819301 |
description | Provide useful impls on numerical enums |
homepage | |
repository | https://github.com/kinnison/enumber/ |
max_upload_size | |
id | 315880 |
size | 37,845 |
enumber
is a procedural macro crate which helps you to work with enums whose
purpose it is to represent numbers (for example when parsing complex binary
logs) or strange wire protocols.
#[enumber::convert]
pub enum Flags {
EnableCompression = 1,
EnableTLS = 2,
Other(usize),
}