pub struct KdTree<BoundingBox: BoundingBoxTrait, Content: KdTreeContent<BoundingBox>> { /* private fields */ }
Implementations
sourceimpl<BoundingBox: BoundingBoxTrait, Content: KdTreeContent<BoundingBox>> KdTree<BoundingBox, Content>
impl<BoundingBox: BoundingBoxTrait, Content: KdTreeContent<BoundingBox>> KdTree<BoundingBox, Content>
sourceimpl<BoundingBox: HittableBoundingBoxTrait, Content: KdTreeContent<BoundingBox>> KdTree<BoundingBox, Content>
impl<BoundingBox: HittableBoundingBoxTrait, Content: KdTreeContent<BoundingBox>> KdTree<BoundingBox, Content>
pub fn get_closest_hit<F>(
&self,
fun: &F,
cray: &ConstrainedRay3d
) -> Option<Content> where
F: Fn(&Content, &ConstrainedRay3d) -> Option<f64>,
Auto Trait Implementations
impl<BoundingBox, Content> RefUnwindSafe for KdTree<BoundingBox, Content> where
BoundingBox: RefUnwindSafe,
Content: RefUnwindSafe,
impl<BoundingBox, Content> Send for KdTree<BoundingBox, Content> where
BoundingBox: Send,
Content: Send,
impl<BoundingBox, Content> Sync for KdTree<BoundingBox, Content> where
BoundingBox: Sync,
Content: Sync,
impl<BoundingBox, Content> Unpin for KdTree<BoundingBox, Content> where
BoundingBox: Unpin,
Content: Unpin,
impl<BoundingBox, Content> UnwindSafe for KdTree<BoundingBox, Content> where
BoundingBox: UnwindSafe,
Content: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more