Crates.io | primitive-enum-derive |
lib.rs | primitive-enum-derive |
version | 0.3.1 |
source | src |
created_at | 2022-08-15 16:18:55.11571 |
updated_at | 2024-03-19 10:33:15.905224 |
description | macros for get primitive enum from complex |
homepage | https://github.com/libfunc/primitive-enum/ |
repository | https://github.com/libfunc/primitive-enum/ |
max_upload_size | |
id | 646008 |
size | 8,919 |
examples:
#[derive(PrimitiveFromEnum)]
#[coming(primitive = "Primitive")]
enum Complex {
A(String),
B(u32),
C
}
#[derive(FromU8)]
enum Primitive {
A,
B,
C,
}