Crates.io | primitive-from-enum |
lib.rs | primitive-from-enum |
version | 0.3.1 |
source | src |
created_at | 2022-08-15 16:29:20.695539 |
updated_at | 2024-03-19 10:37:23.733796 |
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 | 646016 |
size | 3,894 |
examples:
#[derive(PrimitiveFromEnum)]
#[coming(primitive = "Primitive")]
enum Complex {
A(String),
B(u32),
C
}
#[derive(FromU8)]
enum Primitive {
A,
B,
C,
}