我有一个简单的类注释#[pyclass]
#[pyclass]
pub struct A {
...
}
现在我有表格的功能
fn f(slf: Py<Self>) -> PyObject{
//... some code here
let output = A{...};
output.to_object() // Error: method `to_object` not found for this
}
我应该用一些东西来注释我的结构以使其派生pyo3::ToPyObject
吗?