pub struct TreeNodeView {
pub aabb: Aabb,
pub parent: i32,
pub child1: i32,
pub child2: i32,
pub user_data: u64,
pub is_leaf: bool,
pub is_allocated: bool,
}Expand description
Read-only view of a single dynamic-tree node, for visualization tooling that
needs the structural fields the C sample reads off b3TreeNode directly
(parent/children for a BFS depth walk, aabb + flags for per-level drawing).
Fields§
§aabb: AabbThe node bounding box. (b3TreeNode::aabb)
parent: i32The parent index, or crate::core::NULL_INDEX for the root. (b3TreeNode::parent)
child1: i32First child index for internal nodes. (b3TreeNode::children.child1)
child2: i32Second child index for internal nodes. (b3TreeNode::children.child2)
user_data: u64Leaf user data. (b3TreeNode::userData)
is_leaf: boolWhether this node is a leaf (b3_leafNode).
is_allocated: boolWhether this node slot is allocated (b3_allocatedNode).
Trait Implementations§
Source§impl Clone for TreeNodeView
impl Clone for TreeNodeView
Source§fn clone(&self) -> TreeNodeView
fn clone(&self) -> TreeNodeView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TreeNodeView
Auto Trait Implementations§
impl Freeze for TreeNodeView
impl RefUnwindSafe for TreeNodeView
impl Send for TreeNodeView
impl Sync for TreeNodeView
impl Unpin for TreeNodeView
impl UnsafeUnpin for TreeNodeView
impl UnwindSafe for TreeNodeView
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