pub struct TreeBuildVisitor<'a, T, S> { /* private fields */ }
Expand description
The main primitive to build a tree.
Implementations§
Source§impl<'a, T: Aabb, S: Sorter<T>> TreeBuildVisitor<'a, T, S>
impl<'a, T: Aabb, S: Sorter<T>> TreeBuildVisitor<'a, T, S>
pub fn get_bots(&self) -> &[T]
pub fn new( num_levels: usize, bots: &'a mut [T], sorter: S, ) -> TreeBuildVisitor<'a, T, S>
pub fn get_height(&self) -> usize
pub fn build_and_next(self) -> NodeBuildResult<'a, T, S>
pub fn recurse_seq(self, res: &mut Vec<Node<'a, T>>)
Auto Trait Implementations§
impl<'a, T, S> Freeze for TreeBuildVisitor<'a, T, S>where
S: Freeze,
impl<'a, T, S> RefUnwindSafe for TreeBuildVisitor<'a, T, S>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, S> Send for TreeBuildVisitor<'a, T, S>
impl<'a, T, S> Sync for TreeBuildVisitor<'a, T, S>
impl<'a, T, S> Unpin for TreeBuildVisitor<'a, T, S>where
S: Unpin,
impl<'a, T, S> !UnwindSafe for TreeBuildVisitor<'a, T, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more