[−][src]Struct dinotree::DinoTreeRefMut
Mutable referance to a dinotree container.
Methods
impl<'a, A: AxisTrait, T: HasAabb> DinoTreeRefMut<'a, A, T>
[src]
impl<'a, A: AxisTrait, T: HasAabb> DinoTreeRefMut<'a, A, T>
pub fn as_ref_mut(&mut self) -> DinoTreeRefMut<A, T> | [src] |
pub fn vistr_mut(&mut self) -> VistrMut<T> | [src] |
pub fn into_vistr_mut(self) -> VistrMut<'a, T> | [src] |
ⓘImportant traits for IterMut<'a, T>
pub fn iter_mut(&mut self) -> IterMut<T> | [src] |
Iterate over all the bots in the tree. The order in which they are iterated over is dfs pre order as they have been binned and sorted into the dinotree.
ⓘImportant traits for IterMut<'a, T>
pub fn into_iter_mut(self) -> IterMut<'a, T> | [src] |
Iterate over all bots.
Methods from Deref<Target = DinoTreeRef<'a, A, T>>
pub fn as_ref(&self) -> DinoTreeRef<A, T> | [src] |
pub fn axis(&self) -> A | [src] |
pub fn vistr(&self) -> Vistr<T> | [src] |
ⓘImportant traits for Iter<'a, T>
pub fn iter(&self) -> Iter<T> | [src] |
Iterate over all the bots in the tree. The order in which they are iterated over is dfs pre order as they have been binned and sorted into the dinotree.
pub fn height(&self) -> usize | [src] |
Return the height of the dinotree.
pub fn num_nodes(&self) -> usize | [src] |
Return the number of nodes of the dinotree.
pub fn num_bots(&self) -> usize | [src] |
Return the number of bots in the tree.
| [src] |
Returns Ok, then this tree's invariants are being met. Should always return true, unless the user corrupts the trees memory or if the contract of the HasAabb trait are not upheld.
Trait Implementations
impl<'a, A: AxisTrait, T: HasAabb> Deref for DinoTreeRefMut<'a, A, T>
[src]
impl<'a, A: AxisTrait, T: HasAabb> Deref for DinoTreeRefMut<'a, A, T>
type Target = DinoTreeRef<'a, A, T>
The resulting type after dereferencing.
fn deref(&self) -> &DinoTreeRef<'a, A, T> | [src] |
Auto Trait Implementations
impl<'a, A, T> Send for DinoTreeRefMut<'a, A, T> where
T: Send,
<T as HasAabb>::Num: Send,
impl<'a, A, T> Send for DinoTreeRefMut<'a, A, T> where
T: Send,
<T as HasAabb>::Num: Send,
impl<'a, A, T> Sync for DinoTreeRefMut<'a, A, T> where
T: Sync,
<T as HasAabb>::Num: Sync,
impl<'a, A, T> Sync for DinoTreeRefMut<'a, A, T> where
T: Sync,
<T as HasAabb>::Num: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
ⓘImportant traits for &'_ mut I
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |