pyo3/tests/ui/get_set_all.rs

22 lines
239 B
Rust
Raw Normal View History

2022-10-17 00:37:43 +00:00
use pyo3::prelude::*;
#[pyclass(set_all)]
struct Foo;
#[pyclass(set_all)]
struct Foo2{
#[pyo3(set)]
field: u8,
}
#[pyclass(get_all)]
struct Foo3;
#[pyclass(get_all)]
struct Foo4{
#[pyo3(get)]
field: u8,
}
fn main() {}