conspire/geometry/ntree/deref/
mod.rs1use crate::geometry::ntree::{Orthotree, node::Nodes};
2use std::ops::{Deref, DerefMut};
3
4impl<const D: usize, const L: usize, const M: usize, const N: usize, T, U, V> Deref
5 for Orthotree<D, L, M, N, T, U, V>
6{
7 type Target = Nodes<D, M, N, T, U, V>;
8 fn deref(&self) -> &Self::Target {
9 &self.nodes
10 }
11}
12
13impl<const D: usize, const L: usize, const M: usize, const N: usize, T, U, V> DerefMut
14 for Orthotree<D, L, M, N, T, U, V>
15{
16 fn deref_mut(&mut self) -> &mut Self::Target {
17 &mut self.nodes
18 }
19}