primitive-from-enum

Crates.ioprimitive-from-enum
lib.rsprimitive-from-enum
version0.3.1
sourcesrc
created_at2022-08-15 16:29:20.695539
updated_at2024-03-19 10:37:23.733796
descriptionmacros for get primitive enum from complex
homepagehttps://github.com/libfunc/primitive-enum/
repositoryhttps://github.com/libfunc/primitive-enum/
max_upload_size
id646016
size3,894
Rail Khusnutdinov (rail-ka)

documentation

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

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