pub struct TreeInner<N, S> { /* private fields */ }
Expand description
The main tree struct
Implementations
sourceimpl<'a, T> TreeInner<Node<'a, T>, DefaultSorter> where
T: Aabb,
impl<'a, T> TreeInner<Node<'a, T>, DefaultSorter> where
T: Aabb,
sourcepub fn assert_tree_invariants(&self) where
<T as Aabb>::Num: Debug,
pub fn assert_tree_invariants(&self) where
<T as Aabb>::Num: Debug,
panics if a broken broccoli tree invariant is detected. For debugging purposes only.
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, Global>
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, PreOrder>
pub fn sorter(&self) -> S where
S: Copy,
Trait Implementations
sourceimpl<'a, T: Aabb, S: NodeHandler<T>> CollidingPairsApi<T> for TreeInner<Node<'a, T>, S>
impl<'a, T: Aabb, S: NodeHandler<T>> CollidingPairsApi<T> for TreeInner<Node<'a, T>, S>
sourceimpl<'a, T: Aabb, SO: NodeHandler<T>> CollidingPairsBuilderApi<'a, T, SO> for TreeInner<Node<'a, T>, SO>
impl<'a, T: Aabb, SO: NodeHandler<T>> CollidingPairsBuilderApi<'a, T, SO> for TreeInner<Node<'a, T>, SO>
fn vistr_mut<'b>(&'b mut self) -> VistrMutPin<'b, Node<'a, T>>
fn sorter(&mut self) -> SO
fn colliding_pairs_builder<'b, F>(
&'b mut self,
func: F
) -> CollidingPairsBuilder<'a, 'b, T, SO, F> where
F: FnMut(AabbPin<&mut T>, AabbPin<&mut T>),
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