[][src]Struct generic_octree::OctreeNode

pub struct OctreeNode<L, D: Subdivisable> {
    pub loc_code: L,
    pub data: D,
    pub childs: u8,
}

Fields

loc_code: Ldata: Dchilds: u8

Methods

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

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

Create a new Node from it's Data and a LocCode.

pub fn add_child(&mut self, child: L)[src]

Add a child to the actual Node.

Trait Implementations

impl<L: Debug, D: Debug + Subdivisable> Debug for OctreeNode<L, D>[src]

Auto Trait Implementations

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

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

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

impl<L, D> UnwindSafe for OctreeNode<L, D> where
    D: UnwindSafe,
    L: UnwindSafe

impl<L, D> RefUnwindSafe for OctreeNode<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]