pub struct TreeInner<N, S> { /* private fields */ }
Expand description
The main tree struct
Implementations
sourceimpl<'a, T: Aabb> TreeInner<Node<'a, T>, DefaultSorter>
impl<'a, T: Aabb> TreeInner<Node<'a, T>, DefaultSorter>
sourcepub fn assert_tree_invariants(&self) where
T::Num: Debug,
pub fn assert_tree_invariants(&self) where
T::Num: Debug,
panics if a broken broccoli tree invariant is detected. For debugging purposes only.
sourceimpl<N, Y> TreeInner<N, Y>
impl<N, Y> TreeInner<N, Y>
pub fn into_sorter<X>(self) -> TreeInner<N, X> where
X: From<Y>,
sourceimpl<'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>
sourceimpl<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]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
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) -> S where
S: Copy,
Trait Implementations
sourceimpl<'a, T: Aabb> CollidingPairsApi<T> for TreeInner<Node<'a, T>, DefaultSorter>
impl<'a, T: Aabb> CollidingPairsApi<T> for TreeInner<Node<'a, T>, DefaultSorter>
sourceimpl<'a, T: Aabb + Send> ParCollidingPairsApi<T> for TreeInner<Node<'a, T>, DefaultSorter> where
T::Num: Send,
impl<'a, T: Aabb + Send> ParCollidingPairsApi<T> for TreeInner<Node<'a, T>, DefaultSorter> where
T::Num: Send,
Auto Trait Implementations
impl<N, S> RefUnwindSafe for TreeInner<N, S> where
N: RefUnwindSafe,
S: RefUnwindSafe,
impl<N, S> Send for TreeInner<N, S> where
N: Send,
S: Send,
impl<N, S> Sync for TreeInner<N, S> where
N: Sync,
S: Sync,
impl<N, S> Unpin for TreeInner<N, S> where
N: Unpin,
S: Unpin,
impl<N, S> UnwindSafe for TreeInner<N, S> where
N: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more