Trait splashsurf_lib::generic_tree::ParVisitableTree [−][src]
pub trait ParVisitableTree: TreeNode {
fn par_visit_bfs<F>(&self, visitor: F)
where
Self: Sync,
F: Fn(&Self) + Sync,
{ ... }
fn try_par_visit_bfs<E, F>(&self, visitor: F) -> Result<(), E>
where
Self: Sync,
E: Send + Sync,
F: Fn(&Self) -> Result<(), E> + Sync,
{ ... }
}
Expand description
Trait for non-mutable parallel tree visitation algorithms. Automatically implemented for types that implement TreeNode
and ThreadSafe
.
Provided methods
Visits a node and its children in breadth-first order. The visitor is applied in parallel to processing the children.
Visits a node and its children in breadth-first order, stops visitation on first error and returns it. The visitor is applied in parallel to processing the children.