Skip to main content

Visitor

Trait Visitor 

Source
pub trait Visitor {
    type Bound;
    type Result;

    // Required method
    fn accept(
        &mut self,
        bound: &Self::Bound,
        is_leaf: bool,
    ) -> Option<Self::Result>;
}
Expand description

Visitor trait used for querying the tree.

Required Associated Types§

Source

type Bound

Bounding volume accepted by the visitor

Source

type Result

Result returned by the acceptance test

Required Methods§

Source

fn accept(&mut self, bound: &Self::Bound, is_leaf: bool) -> Option<Self::Result>

Acceptance test function

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a, B: 'a, T> Visitor for ContinuousVisitor<'a, B, T>
where T: TreeValue, T::Bound: Continuous<B> + Discrete<B>,

Source§

impl<'a, B: 'a, T> Visitor for DiscreteVisitor<'a, B, T>
where T: TreeValue, T::Bound: Discrete<B>,

Source§

impl<'a, S, T> Visitor for FrustumVisitor<'a, S, T>
where S: BaseFloat, T: TreeValue, T::Bound: PlaneBound<S>,