[−][src]Struct broccoli::analyze::TreePreBuilder
Using this struct the user can determine the height of a tree or the number of nodes that would exist if the tree were constructed with the specified number of elements.
Implementations
impl TreePreBuilder
[src]
pub const fn new(num_elements: usize) -> TreePreBuilder
[src]
Create the builder object with default values.
pub const fn with_num_elem_in_leaf(
num_elements: usize,
num_elem_leaf: usize
) -> TreePreBuilder
[src]
num_elements: usize,
num_elem_leaf: usize
) -> TreePreBuilder
Specify a custom default nuber of elements per leaf.
pub fn with_height_seq(&mut self, height: usize)
[src]
Specify at which level to switch from parallel to sequential when parallel functions are used.
pub const fn with_height(height: usize) -> TreePreBuilder
[src]
Specify a custom height of the tree, ignoring the number of elements per node variable.
pub fn into_builder<'a, T: Aabb>(
&self,
bots: &'a mut [T]
) -> TreeBuilder<'a, DefaultA, T>
[src]
&self,
bots: &'a mut [T]
) -> TreeBuilder<'a, DefaultA, T>
Create a TreeBuilder
pub fn into_builder_with_axis<'a, A: Axis, T: Aabb>(
&self,
bots: &'a mut [T],
axis: A
) -> TreeBuilder<'a, A, T>
[src]
&self,
bots: &'a mut [T],
axis: A
) -> TreeBuilder<'a, A, T>
Create a TreeBuilder
with a use specified axis.
pub const fn get_height_seq(&self) -> usize
[src]
Return the level at which parallel algorithms will switch to sequential.
pub const fn num_nodes(&self) -> usize
[src]
Compute the number of nodes in the tree based off of the height.
pub const fn get_height(&self) -> usize
[src]
Get the currently configured height.
Trait Implementations
impl Clone for TreePreBuilder
[src]
pub fn clone(&self) -> TreePreBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TreePreBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for TreePreBuilder
[src]
impl Send for TreePreBuilder
[src]
impl Sync for TreePreBuilder
[src]
impl Unpin for TreePreBuilder
[src]
impl UnwindSafe for TreePreBuilder
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,