[−][src]Struct broccoli::query::NaiveAlgs
Provides the naive implementation of the Tree
api.
Implementations
impl<'a, T: Aabb> NaiveAlgs<'a, T>
[src]
#[must_use]pub fn raycast_mut<Acc>(
&mut self,
ray: Ray<T::Num>,
start: &mut Acc,
broad: impl FnMut(&mut Acc, &Ray<T::Num>, &Rect<T::Num>) -> CastResult<T::Num>,
fine: impl FnMut(&mut Acc, &Ray<T::Num>, &T) -> CastResult<T::Num>,
border: Rect<T::Num>
) -> CastResult<(Vec<PMut<'_, T>>, T::Num)>
[src]
&mut self,
ray: Ray<T::Num>,
start: &mut Acc,
broad: impl FnMut(&mut Acc, &Ray<T::Num>, &Rect<T::Num>) -> CastResult<T::Num>,
fine: impl FnMut(&mut Acc, &Ray<T::Num>, &T) -> CastResult<T::Num>,
border: Rect<T::Num>
) -> CastResult<(Vec<PMut<'_, T>>, T::Num)>
#[must_use]pub fn k_nearest_mut<Acc>(
&mut self,
point: Vec2<T::Num>,
num: usize,
start: &mut Acc,
broad: impl FnMut(&mut Acc, Vec2<T::Num>, &Rect<T::Num>) -> T::Num,
fine: impl FnMut(&mut Acc, Vec2<T::Num>, &T) -> T::Num
) -> KResult<'_, T>
[src]
&mut self,
point: Vec2<T::Num>,
num: usize,
start: &mut Acc,
broad: impl FnMut(&mut Acc, Vec2<T::Num>, &Rect<T::Num>) -> T::Num,
fine: impl FnMut(&mut Acc, Vec2<T::Num>, &T) -> T::Num
) -> KResult<'_, T>
impl<'a, T: Aabb> NaiveAlgs<'a, T>
[src]
pub fn for_all_in_rect_mut(
&mut self,
rect: &Rect<T::Num>,
func: impl FnMut(PMut<'_, T>)
)
[src]
&mut self,
rect: &Rect<T::Num>,
func: impl FnMut(PMut<'_, T>)
)
pub fn for_all_not_in_rect_mut(
&mut self,
rect: &Rect<T::Num>,
func: impl FnMut(PMut<'_, T>)
)
[src]
&mut self,
rect: &Rect<T::Num>,
func: impl FnMut(PMut<'_, T>)
)
pub fn for_all_intersect_rect_mut(
&mut self,
rect: &Rect<T::Num>,
func: impl FnMut(PMut<'_, T>)
)
[src]
&mut self,
rect: &Rect<T::Num>,
func: impl FnMut(PMut<'_, T>)
)
pub fn find_colliding_pairs_mut(
&mut self,
func: impl FnMut(PMut<'_, T>, PMut<'_, T>)
)
[src]
&mut self,
func: impl FnMut(PMut<'_, T>, PMut<'_, T>)
)
impl<'a, T: Aabb> NaiveAlgs<'a, T>
[src]
#[must_use]pub fn from_slice(a: &'a mut [T]) -> NaiveAlgs<'a, T>
[src]
#[must_use]pub fn new(bots: PMut<'a, [T]>) -> NaiveAlgs<'a, T>
[src]
pub fn nbody(&mut self, func: impl FnMut(PMut<'_, T>, PMut<'_, T>))
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for NaiveAlgs<'a, T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<'a, T> Send for NaiveAlgs<'a, T> where
T: Send,
[src]
T: Send,
impl<'a, T> Sync for NaiveAlgs<'a, T> where
T: Sync,
[src]
T: Sync,
impl<'a, T> Unpin for NaiveAlgs<'a, T>
[src]
impl<'a, T> !UnwindSafe for NaiveAlgs<'a, T>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,