[][src]Struct dinotree::DinoTreeNoCopy

pub struct DinoTreeNoCopy<'a, A: AxisTrait, T: HasAabb> { /* fields omitted */ }

A version where the bots are not copied. This means that the slice borrowed from the user must remain borrowed for the entire lifetime of the tree.

Methods

impl<'a, A: AxisTrait, T: HasAabb + Copy> DinoTreeNoCopy<'a, A, T>
[src]

pub fn into_original(self) -> &'a mut [T]
[src]

Returns the bots to their original ordering. This is what you would call after you used this tree to make the changes you made while querying the tree (through use of vistr_mut) be copied back into the original list.

pub fn get_bots_mut(&mut self) -> &mut [T]
[src]

pub fn as_ref_mut(&mut self) -> DinoTreeRefMut<A, T>
[src]

Return a mutable reference to the tree.

pub fn as_ref(&self) -> DinoTreeRef<A, T>
[src]

Return a reference to the tree.

Auto Trait Implementations

impl<'a, A, T> Send for DinoTreeNoCopy<'a, A, T> where
    T: Send,
    <T as HasAabb>::Num: Send

impl<'a, A, T> Sync for DinoTreeNoCopy<'a, A, T> where
    T: Sync,
    <T as HasAabb>::Num: Sync

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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.

impl<T> Any for T where
    T: 'static + ?Sized
[src]