Struct broccoli::build::TreePreBuilder [−][src]
pub struct TreePreBuilder { /* fields omitted */ }
Expand description
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
Create the builder object with default values.
pub const fn with_num_elem_in_leaf(
num_elements: usize,
num_elem_leaf: usize
) -> TreePreBuilder
[src]
pub const fn with_num_elem_in_leaf(
num_elements: usize,
num_elem_leaf: usize
) -> TreePreBuilder
[src]Specify a custom default nuber of elements per leaf.
Specify a custom height of the tree, ignoring the number of elements per node variable.
Create a TreeBuilder
Compute the number of nodes in the tree based off of the height.
Get the currently configured height.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TreePreBuilder
impl Send for TreePreBuilder
impl Sync for TreePreBuilder
impl Unpin for TreePreBuilder
impl UnwindSafe for TreePreBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more