[−][src]Struct dinotree::dinotree::DinoTreeOwnedBuilder
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]
axis: A,
bots: Vec<T>,
aabb_create: F
) -> DinoTreeOwnedBuilder<A, T, Num, F>
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 Ipub fn with_bin_strat(&mut self, strat: BinStrat) -> &mut Self
[src]
ⓘImportant traits for &'_ mut I
Choose a custom bin stratagy.
ⓘImportant traits for &'_ mut Ipub fn with_height(&mut self, height: usize) -> &mut Self
[src]
ⓘImportant traits for &'_ mut I
Choose a custom height for the tree.
ⓘImportant traits for &'_ mut Ipub fn with_height_switch_seq(&mut self, height: usize) -> &mut Self
[src]
ⓘImportant traits for &'_ mut I
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,
A: Unpin,
F: Unpin,
T: Unpin,
impl<A, T, Num, F> Send for DinoTreeOwnedBuilder<A, T, Num, F> where
F: Send,
T: Send,
F: Send,
T: Send,
impl<A, T, Num, F> Sync for DinoTreeOwnedBuilder<A, T, Num, F> where
F: Sync,
T: Sync,
F: Sync,
T: Sync,
impl<A, T, Num, F> RefUnwindSafe for DinoTreeOwnedBuilder<A, T, Num, F> where
A: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
A: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<A, T, Num, F> UnwindSafe for DinoTreeOwnedBuilder<A, T, Num, F> where
A: UnwindSafe,
F: UnwindSafe,
T: UnwindSafe,
A: UnwindSafe,
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
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.
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> From<T> for T
[src]
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,