As of PyO3 version 0.18.1, only fieldless enums are supported.
What are the potential implementations to support enums with fields using PyO3 if implemented manually?? pyclass
is of no use here (Correct me if I am wrong).
For instance if I have to implement for following enum?
pub enum Prop {
Str(String),
I32(i32),
I64(i64),
U32(u32),
U64(u64),
F32(f32),
F64(f64),
Bool(bool),
}
Please suggest.