[−][src]Struct dinotree::DinoTreeRef
Referance to a dinotree container.
Methods
impl<'a, A: AxisTrait, T: HasAabb> DinoTreeRef<'a, A, T>
[src]
impl<'a, A: AxisTrait, T: HasAabb> DinoTreeRef<'a, A, T>
pub fn as_ref(&self) -> DinoTreeRef<A, T> | [src] |
pub fn axis(&self) -> A | [src] |
pub fn into_vistr(self) -> Vistr<'a, T> | [src] |
pub fn vistr(&self) -> Vistr<T> | [src] |
ⓘImportant traits for Iter<'a, T>
ⓘ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> IntoIterator for DinoTreeRef<'a, A, T>
[src]
impl<'a, A: AxisTrait, T: HasAabb> IntoIterator for DinoTreeRef<'a, A, T>
Auto Trait Implementations
impl<'a, A, T> Send for DinoTreeRef<'a, A, T> where
T: Sync,
<T as HasAabb>::Num: Sync,
impl<'a, A, T> Send for DinoTreeRef<'a, A, T> where
T: Sync,
<T as HasAabb>::Num: Sync,
impl<'a, A, T> Sync for DinoTreeRef<'a, A, T> where
T: Sync,
<T as HasAabb>::Num: Sync,
impl<'a, A, T> Sync for DinoTreeRef<'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<I> IntoIterator for I where
I: Iterator,
[src]
impl<I> IntoIterator for I where
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I | [src] |
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 = !
🔬 This is a nightly-only experimental API. (
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
ⓘ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
🔬 This is a nightly-only experimental API. (
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] |