[−][src]Struct generic_octree::Octree
Methods
impl<L, D> Octree<L, D> where
L: LocCode,
D: Subdivisable,
[src]
L: LocCode,
D: Subdivisable,
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]
&mut self,
node: &OctreeNode<L, D>
) -> Option<&mut OctreeNode<L, D>>
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]
L: Serialize,
D: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de, L: Eq + Hash, D: Subdivisable> Deserialize<'de> for Octree<L, D> where
L: Deserialize<'de>,
D: Deserialize<'de>,
[src]
L: Deserialize<'de>,
D: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<L, D> Send for Octree<L, D> where
D: Send,
L: Send,
D: Send,
L: Send,
impl<L, D> Unpin for Octree<L, D> where
D: Unpin,
L: Unpin,
D: Unpin,
L: Unpin,
impl<L, D> Sync for Octree<L, D> where
D: Sync,
L: Sync,
D: Sync,
L: Sync,
impl<L, D> UnwindSafe for Octree<L, D> where
D: RefUnwindSafe + UnwindSafe,
L: RefUnwindSafe + UnwindSafe,
D: RefUnwindSafe + UnwindSafe,
L: RefUnwindSafe + UnwindSafe,
impl<L, D> RefUnwindSafe for Octree<L, D> where
D: RefUnwindSafe,
L: RefUnwindSafe,
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,