pub struct Octarr<T: Send + Clone> { /* private fields */ }
Implementations§
Source§impl<T: Send + Clone> Octarr<T>
impl<T: Send + Clone> Octarr<T>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, position: [i128; 3]) -> Option<&OctNode<T>>
pub fn get_data(&self, position: [i128; 3]) -> Option<&T>
pub fn set(&mut self, x: i128, y: i128, z: i128, value: T)
pub fn optimize(&mut self)
pub const fn is_outside_bounds(&self, position: &[i128; 3]) -> bool
pub fn grow(&mut self)
pub fn shrink(&mut self, recursive: bool)
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Octarr<T>
impl<'de, T> Deserialize<'de> for Octarr<T>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T> Freeze for Octarr<T>where
T: Freeze,
impl<T> RefUnwindSafe for Octarr<T>where
T: RefUnwindSafe,
impl<T> Send for Octarr<T>
impl<T> Sync for Octarr<T>where
T: Sync,
impl<T> Unpin for Octarr<T>where
T: Unpin,
impl<T> UnwindSafe for Octarr<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more