2021-11-16 19:31:30 +00:00
|
|
|
use pyo3::prelude::*;
|
|
|
|
|
|
|
|
#[pyclass(subclass)]
|
|
|
|
enum NotBaseClass {
|
2022-03-18 14:58:44 +00:00
|
|
|
X,
|
|
|
|
Y,
|
2021-11-16 19:31:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[pyclass(extends = PyList)]
|
|
|
|
enum NotDrivedClass {
|
2022-03-18 14:58:44 +00:00
|
|
|
X,
|
|
|
|
Y,
|
2021-11-16 19:31:30 +00:00
|
|
|
}
|
|
|
|
|
2021-11-22 16:58:33 +00:00
|
|
|
#[pyclass]
|
|
|
|
enum NoEmptyEnum {}
|
|
|
|
|
2024-01-15 15:57:42 +00:00
|
|
|
#[pyclass]
|
|
|
|
enum NoUnitVariants {
|
|
|
|
StructVariant { field: i32 },
|
|
|
|
UnitVariant,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[pyclass]
|
|
|
|
enum NoTupleVariants {
|
|
|
|
StructVariant { field: i32 },
|
|
|
|
TupleVariant(i32),
|
|
|
|
}
|
|
|
|
|
2021-11-16 19:31:30 +00:00
|
|
|
fn main() {}
|