pub trait DynTreeNode {
// Required methods
fn arc_children(&self) -> Vec<Arc<Self, Global>, Global>;
fn with_new_arc_children(
&self,
arc_self: Arc<Self, Global>,
new_children: Vec<Arc<Self, Global>, Global>
) -> Result<Arc<Self, Global>, DataFusionError>;
}
Expand description
Helper trait for implementing TreeNode
that have children stored as Arc’s
If some trait object, such as dyn T
, implements this trait,
its related Arc<dyn T>
will automatically implement TreeNode
Returns all children of the specified TreeNode
construct a new self with the specified children