[−][src]Struct dinotree_alg::DinoTree
The data structure this crate revoles around.
Methods
impl<'a, T: Aabb> DinoTree<DefaultA, NodeMut<'a, T>>
[src]
impl<'a, T: Aabb + Send + Sync> DinoTree<DefaultA, NodeMut<'a, T>>
[src]
impl<'a, A: Axis, T: Aabb> DinoTree<A, NodeMut<'a, T>>
[src]
#[must_use]
pub fn with_axis(axis: A, bots: &'a mut [T]) -> DinoTree<A, NodeMut<'a, T>>
[src]
impl<'a, A: Axis, T: Aabb + Send + Sync> DinoTree<A, NodeMut<'a, T>>
[src]
#[must_use]
pub fn with_axis_par(axis: A, bots: &'a mut [T]) -> DinoTree<A, NodeMut<'a, T>>
[src]
impl<A: Axis, N: Node + Send + Sync> DinoTree<A, N> where
N::T: Send + Sync,
[src]
N::T: Send + Sync,
pub fn find_collisions_mut_par(
&mut self,
func: impl Fn(PMut<N::T>, PMut<N::T>) + Send + Sync
)
[src]
&mut self,
func: impl Fn(PMut<N::T>, PMut<N::T>) + Send + Sync
)
impl<A: Axis, N: Node> DinoTree<A, N>
[src]
pub fn draw(
&self,
drawer: &mut impl DividerDrawer<N = N::Num>,
rect: &Rect<N::Num>
)
[src]
&self,
drawer: &mut impl DividerDrawer<N = N::Num>,
rect: &Rect<N::Num>
)
pub fn intersect_with_mut<X: Aabb<Num = N::Num>>(
&mut self,
other: &mut [X],
func: impl Fn(PMut<N::T>, PMut<X>)
)
[src]
&mut self,
other: &mut [X],
func: impl Fn(PMut<N::T>, PMut<X>)
)
#[must_use]
pub fn raycast_mut(
&mut self,
rect: Rect<N::Num>,
ray: Ray<N::Num>,
rtrait: &mut impl RayCast<N = N::Num, T = N::T>
) -> RayCastResult<N::T>
[src]
&mut self,
rect: Rect<N::Num>,
ray: Ray<N::Num>,
rtrait: &mut impl RayCast<N = N::Num, T = N::T>
) -> RayCastResult<N::T>
#[must_use]
pub fn k_nearest_mut(
&mut self,
point: Vec2<N::Num>,
num: usize,
knear: &mut impl Knearest<N = N::Num, T = N::T>,
rect: Rect<N::Num>
) -> Vec<KnearestResult<N::T>>
[src]
&mut self,
point: Vec2<N::Num>,
num: usize,
knear: &mut impl Knearest<N = N::Num, T = N::T>,
rect: Rect<N::Num>
) -> Vec<KnearestResult<N::T>>
#[must_use]
pub fn multi_rect(&mut self) -> MultiRectMut<A, N>
[src]
pub fn for_all_not_in_rect_mut(
&mut self,
rect: &Rect<N::Num>,
func: impl FnMut(PMut<N::T>)
)
[src]
&mut self,
rect: &Rect<N::Num>,
func: impl FnMut(PMut<N::T>)
)
pub fn for_all_intersect_rect_mut(
&mut self,
rect: &Rect<N::Num>,
func: impl FnMut(PMut<N::T>)
)
[src]
&mut self,
rect: &Rect<N::Num>,
func: impl FnMut(PMut<N::T>)
)
pub fn for_all_intersect_rect<'a>(
&'a self,
rect: &Rect<N::Num>,
func: impl FnMut(&'a N::T)
)
[src]
&'a self,
rect: &Rect<N::Num>,
func: impl FnMut(&'a N::T)
)
pub fn for_all_in_rect_mut(
&mut self,
rect: &Rect<N::Num>,
func: impl FnMut(PMut<N::T>)
)
[src]
&mut self,
rect: &Rect<N::Num>,
func: impl FnMut(PMut<N::T>)
)
pub fn for_all_in_rect(&self, rect: &Rect<N::Num>, func: impl FnMut(&N::T))
[src]
pub fn find_collisions_mut(&mut self, func: impl FnMut(PMut<N::T>, PMut<N::T>))
[src]
#[must_use]
pub fn axis(&self) -> A
[src]
#[must_use]
pub fn vistr_mut(&mut self) -> VistrMut<N>
[src]
#[must_use]
pub fn vistr(&self) -> Vistr<N>
[src]
#[must_use]
pub fn get_height(&self) -> usize
[src]
#[must_use]
pub fn num_nodes(&self) -> usize
[src]
Auto Trait Implementations
impl<A, N> Unpin for DinoTree<A, N> where
A: Unpin,
N: Unpin,
A: Unpin,
N: Unpin,
impl<A, N> Send for DinoTree<A, N> where
N: Send,
N: Send,
impl<A, N> Sync for DinoTree<A, N> where
N: Sync,
N: Sync,
impl<A, N> UnwindSafe for DinoTree<A, N> where
A: UnwindSafe,
N: UnwindSafe,
A: UnwindSafe,
N: UnwindSafe,
impl<A, N> RefUnwindSafe for DinoTree<A, N> where
A: RefUnwindSafe,
N: RefUnwindSafe,
A: RefUnwindSafe,
N: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Ifn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut I
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,