primitive-enum-derive

Crates.ioprimitive-enum-derive
lib.rsprimitive-enum-derive
version0.3.1
sourcesrc
created_at2022-08-15 16:18:55.11571
updated_at2024-03-19 10:33:15.905224
descriptionmacros for get primitive enum from complex
homepagehttps://github.com/libfunc/primitive-enum/
repositoryhttps://github.com/libfunc/primitive-enum/
max_upload_size
id646008
size8,919
Rail Khusnutdinov (rail-ka)

documentation

https://docs.rs/primitive-enum-derive/

README

Macros for get primitive enum from complex

examples:

#[derive(PrimitiveFromEnum)]
#[coming(primitive = "Primitive")]
enum Complex {
    A(String),
    B(u32),
    C
}
#[derive(FromU8)]
enum Primitive {
    A,
    B,
    C,
}
Commit count: 36

cargo fmt