enumber

Crates.ioenumber
lib.rsenumber
version0.3.1
sourcesrc
created_at2020-11-24 17:11:46.572406
updated_at2024-04-16 17:08:17.819301
descriptionProvide useful impls on numerical enums
homepage
repositoryhttps://github.com/kinnison/enumber/
max_upload_size
id315880
size37,845
Daniel Silverstone (kinnison)

documentation

https://docs.rs/enumber/

README

enumber

BSD 3 Clause Main build status Latest docs Crates.IO

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),
}
Commit count: 21

cargo fmt