pub struct TreeBuilder<'a, T, S> {
pub bots: &'a mut [T],
pub sorter: S,
pub num_level: usize,
pub num_seq_fallback: usize,
}
Fields§
§bots: &'a mut [T]
§sorter: S
§num_level: usize
§num_seq_fallback: usize
Implementations§
Source§impl<'a, T: Aabb, S: Sorter<T>> TreeBuilder<'a, T, S>
impl<'a, T: Aabb, S: Sorter<T>> TreeBuilder<'a, T, S>
Source§impl<'a, T: Aabb> TreeBuilder<'a, T, NoSorter>
impl<'a, T: Aabb> TreeBuilder<'a, T, NoSorter>
pub fn new_no_sort(bots: &'a mut [T]) -> Self
Source§impl<'a, T: Aabb> TreeBuilder<'a, T, DefaultSorter>
impl<'a, T: Aabb> TreeBuilder<'a, T, DefaultSorter>
pub fn new_default(bots: &'a mut [T]) -> Self
Auto Trait Implementations§
impl<'a, T, S> Freeze for TreeBuilder<'a, T, S>where
S: Freeze,
impl<'a, T, S> RefUnwindSafe for TreeBuilder<'a, T, S>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, S> Send for TreeBuilder<'a, T, S>
impl<'a, T, S> Sync for TreeBuilder<'a, T, S>
impl<'a, T, S> Unpin for TreeBuilder<'a, T, S>where
S: Unpin,
impl<'a, T, S> !UnwindSafe for TreeBuilder<'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