pub trait PyTree: Tree + Any {
// Required method
fn to_object(&self, py: Python<'_>) -> PyObject;
}Expand description
Trait for Python tree objects that can be converted to and from Python objects.
This trait is implemented by all tree types that wrap Python objects.