pub trait ParallelSimdVisitor<LeafData>: Sync {
// Required method
fn visit(
&self,
node_id: SimdNodeIndex,
bv: &QbvhNode,
data: Option<[Option<&LeafData>; 4]>,
) -> SimdVisitStatus;
}
Expand description
Trait implemented by visitor called during the parallel traversal of a spatial partitioning data structure.
Required Methods§
sourcefn visit(
&self,
node_id: SimdNodeIndex,
bv: &QbvhNode,
data: Option<[Option<&LeafData>; 4]>,
) -> SimdVisitStatus
fn visit( &self, node_id: SimdNodeIndex, bv: &QbvhNode, data: Option<[Option<&LeafData>; 4]>, ) -> SimdVisitStatus
Execute an operation on the content of a node of the spatial partitioning structure.
Returns whether the traversal should continue on the node’s children, if it should not continue on those children, or if the whole traversal should be exited early.