pub struct DynamicTreeNode<T: Clone> {
pub aabb: Aabb,
pub user_data: Option<T>,
pub parent: i32,
pub children: [i32; 2],
pub height: i32,
}Expand description
A node in the dynamic tree.
Fields§
§aabb: AabbEnlarged AABB for this node.
user_data: Option<T>User data (e.g., EntityId or index).
parent: i32Index of the parent node.
children: [i32; 2]Indices of child nodes (if internal).
height: i32Height of the node in the tree (0 for leaves).
Implementations§
Trait Implementations§
Source§impl<T: Clone + Clone> Clone for DynamicTreeNode<T>
impl<T: Clone + Clone> Clone for DynamicTreeNode<T>
Source§fn clone(&self) -> DynamicTreeNode<T>
fn clone(&self) -> DynamicTreeNode<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for DynamicTreeNode<T>where
T: Freeze,
impl<T> RefUnwindSafe for DynamicTreeNode<T>where
T: RefUnwindSafe,
impl<T> Send for DynamicTreeNode<T>where
T: Send,
impl<T> Sync for DynamicTreeNode<T>where
T: Sync,
impl<T> Unpin for DynamicTreeNode<T>where
T: Unpin,
impl<T> UnwindSafe for DynamicTreeNode<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