pyo3/tests/ui/get_set_all.rs
2022-10-17 02:37:43 +02:00

22 lines
239 B
Rust

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() {}