[][src]Struct dinotree::dinotree::DinoTreeOwnedBuilder

pub struct DinoTreeOwnedBuilder<A: AxisTrait, T, Num: NumTrait, F: FnMut(&T) -> Rect<Num>> { /* fields omitted */ }

Methods

impl<A: AxisTrait, T: Send + Sync, Num: NumTrait, F: FnMut(&T) -> Rect<Num>> DinoTreeOwnedBuilder<A, T, Num, F>[src]

pub fn build_par(self) -> DinoTreeOwned<A, Num, T>[src]

Build in parallel

impl<A: AxisTrait, T, Num: NumTrait, F: FnMut(&T) -> Rect<Num>> DinoTreeOwnedBuilder<A, T, Num, F>[src]

pub fn new(
    axis: A,
    bots: Vec<T>,
    aabb_create: F
) -> DinoTreeOwnedBuilder<A, T, Num, F>
[src]

Create a dinotree builder. The user picks the axis along which the first divider will partition. If for example the user picks the x axis, then the first divider will be a line from top to bottom. The user also passes a function to create the bounding box of each bot in the slice passed.

Important traits for &'_ mut I
pub fn with_bin_strat(&mut self, strat: BinStrat) -> &mut Self[src]

Choose a custom bin stratagy.

Important traits for &'_ mut I
pub fn with_height(&mut self, height: usize) -> &mut Self[src]

Choose a custom height for the tree.

Important traits for &'_ mut I
pub fn with_height_switch_seq(&mut self, height: usize) -> &mut Self[src]

Choose the height at which to switch from parallel to sequential. If you end up building sequentially, this argument is ignored.

pub fn build_seq(self) -> DinoTreeOwned<A, Num, T>[src]

Build sequentially.

Auto Trait Implementations

impl<A, T, Num, F> Unpin for DinoTreeOwnedBuilder<A, T, Num, F> where
    A: Unpin,
    F: Unpin,
    T: Unpin

impl<A, T, Num, F> Send for DinoTreeOwnedBuilder<A, T, Num, F> where
    F: Send,
    T: Send

impl<A, T, Num, F> Sync for DinoTreeOwnedBuilder<A, T, Num, F> where
    F: Sync,
    T: Sync

impl<A, T, Num, F> UnwindSafe for DinoTreeOwnedBuilder<A, T, Num, F> where
    A: UnwindSafe,
    F: UnwindSafe,
    T: UnwindSafe

impl<A, T, Num, F> RefUnwindSafe for DinoTreeOwnedBuilder<A, T, Num, F> where
    A: RefUnwindSafe,
    F: RefUnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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.

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

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

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