Trait parry3d::partitioning::SimdVisitorWithContext
source · pub trait SimdVisitorWithContext<LeafData, SimdBV, Context: Clone> {
// Required method
fn visit(
&mut self,
bv: &SimdBV,
data: Option<[Option<&LeafData>; 4]>,
context: Context
) -> (SimdVisitStatus, [Context; 4]);
}
Expand description
Trait implemented by visitor called during the traversal of a spatial partitioning data structure.
Required Methods§
sourcefn visit(
&mut self,
bv: &SimdBV,
data: Option<[Option<&LeafData>; 4]>,
context: Context
) -> (SimdVisitStatus, [Context; 4])
fn visit( &mut self, bv: &SimdBV, data: Option<[Option<&LeafData>; 4]>, context: Context ) -> (SimdVisitStatus, [Context; 4])
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. Also returns a context, which may or may not be identical to the input context.