pub struct TreeInner<N, S> { /* private fields */ }
Expand description
The main tree struct
Implementations§
Source§impl<'a, T: Aabb> TreeInner<Node<'a, T>, DefaultSorter>
impl<'a, T: Aabb> TreeInner<Node<'a, T>, DefaultSorter>
Sourcepub fn assert_tree_invariants(&self)
pub fn assert_tree_invariants(&self)
panics if a broken broccoli tree invariant is detected. For debugging purposes only.
Source§impl<N, Y> TreeInner<N, Y>
impl<N, Y> TreeInner<N, Y>
pub fn into_sorter<X>(self) -> TreeInner<N, X>where
X: From<Y>,
Source§impl<'a, T: Aabb + 'a, S: Sorter<T>> TreeInner<Node<'a, T>, S>
impl<'a, T: Aabb + 'a, S: Sorter<T>> TreeInner<Node<'a, T>, S>
pub fn into_node_data_tree(self) -> TreeInner<NodeData<T::Num>, S>
Source§impl<S, H> TreeInner<H, S>
impl<S, H> TreeInner<H, S>
pub fn node_map<K>(self, func: impl FnMut(H) -> K) -> TreeInner<K, S>
pub fn num_levels(&self) -> usize
pub fn into_nodes(self) -> Vec<H>
pub fn num_nodes(&self) -> usize
pub fn total_num_elem(&self) -> usize
pub fn get_nodes(&self) -> &[H]
pub fn get_nodes_mut(&mut self) -> AabbPin<&mut [H]>
pub fn vistr_mut(&mut self) -> VistrMutPin<'_, H>
pub fn vistr_mut_raw(&mut self) -> VistrMut<'_, H, PreOrder>
pub fn vistr(&self) -> Vistr<'_, H>
pub fn sorter(&self) -> Swhere
S: Copy,
Trait Implementations§
Auto Trait Implementations§
impl<N, S> Freeze for TreeInner<N, S>where
S: Freeze,
impl<N, S> RefUnwindSafe for TreeInner<N, S>where
S: RefUnwindSafe,
N: RefUnwindSafe,
impl<N, S> Send for TreeInner<N, S>
impl<N, S> Sync for TreeInner<N, S>
impl<N, S> Unpin for TreeInner<N, S>
impl<N, S> UnwindSafe for TreeInner<N, S>where
S: UnwindSafe,
N: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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