[][src]Struct dinotree_alg::analyze::Assert

pub struct Assert;
👎 Deprecated:

use the broccoli crate instead

Collection of functions that panics if the dinotree result differs from the naive solution. Should never panic unless invariants of the tree data struct have been violated.

Implementations

impl Assert[src]

#[must_use]pub fn tree_invariants<A: Axis, T: Aabb>(tree: &DinoTree<'_, A, T>) -> bool[src]

👎 Deprecated:

use the broccoli crate instead

Returns false if the tree's invariants are not met.

pub fn find_intersections_mut<A: Axis, T: Aabb + HasInner>(
    tree: &mut DinoTree<'_, A, T>
)
[src]

👎 Deprecated:

use the broccoli crate instead

pub fn k_nearest_mut<Acc, A: Axis, T: Aabb + HasInner>(
    tree: &mut DinoTree<'_, A, T>,
    point: Vec2<T::Num>,
    num: usize,
    acc: &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,
    rect: Rect<T::Num>
)
[src]

👎 Deprecated:

use the broccoli crate instead

pub fn raycast_mut<Acc, A: Axis, T: Aabb + HasInner>(
    tree: &mut DinoTree<'_, A, T>,
    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>
) where
    <T as Aabb>::Num: Debug
[src]

👎 Deprecated:

use the broccoli crate instead

pub fn for_all_in_rect_mut<A: Axis, T: Aabb + HasInner>(
    tree: &mut DinoTree<'_, A, T>,
    rect: &Rect<T::Num>
)
[src]

👎 Deprecated:

use the broccoli crate instead

pub fn for_all_not_in_rect_mut<A: Axis, T: Aabb + HasInner>(
    tree: &mut DinoTree<'_, A, T>,
    rect: &Rect<T::Num>
)
[src]

👎 Deprecated:

use the broccoli crate instead

Panics if the result differs from the naive solution. Should never panic unless invariants of the tree data struct have been violated.

pub fn for_all_intersect_rect_mut<A: Axis, T: Aabb + HasInner>(
    tree: &mut DinoTree<'_, A, T>,
    rect: &Rect<T::Num>
)
[src]

👎 Deprecated:

use the broccoli crate instead

Auto Trait Implementations

impl RefUnwindSafe for Assert

impl Send for Assert

impl Sync for Assert

impl Unpin for Assert

impl UnwindSafe for Assert

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.