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

Required Methods§

source

fn arc_children(&self) -> Vec<Arc<Self, Global>, Global>

Returns all children of the specified TreeNode

source

fn with_new_arc_children( &self, arc_self: Arc<Self, Global>, new_children: Vec<Arc<Self, Global>, Global> ) -> Result<Arc<Self, Global>, DataFusionError>

construct a new self with the specified children

Implementors§