[][src]Struct generic_octree::Octree

pub struct Octree<L: Eq + Hash, D: Subdivisable> { /* fields omitted */ }

Methods

impl<L, D> Octree<L, D> where
    L: LocCode,
    D: Subdivisable
[src]

pub fn new(data: D) -> Self[src]

Create a new Octree from an entry. It's necessary to initialize it with a entry because the tree lay on the first entry.

pub fn with_capacity(size: usize, data: D) -> Self[src]

pub fn lookup(&self, loc_code: &L) -> Option<&OctreeNode<L, D>>[src]

pub fn insert(&mut self, node: OctreeNode<L, D>)[src]

pub fn get_mut_root(
    &mut self,
    node: &OctreeNode<L, D>
) -> Option<&mut OctreeNode<L, D>>
[src]

pub fn place_data(&mut self, data: D) -> Result<(), ErrorKind>[src]

Trait Implementations

impl<L: Debug + Eq + Hash, D: Debug + Subdivisable> Debug for Octree<L, D>[src]

impl<L: Eq + Hash, D: Subdivisable> Serialize for Octree<L, D> where
    L: Serialize,
    D: Serialize
[src]

impl<'de, L: Eq + Hash, D: Subdivisable> Deserialize<'de> for Octree<L, D> where
    L: Deserialize<'de>,
    D: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<L, D> Send for Octree<L, D> where
    D: Send,
    L: Send

impl<L, D> Unpin for Octree<L, D> where
    D: Unpin,
    L: Unpin

impl<L, D> Sync for Octree<L, D> where
    D: Sync,
    L: Sync

impl<L, D> UnwindSafe for Octree<L, D> where
    D: RefUnwindSafe + UnwindSafe,
    L: RefUnwindSafe + UnwindSafe

impl<L, D> RefUnwindSafe for Octree<L, D> where
    D: RefUnwindSafe,
    L: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]