#[repr(C)]pub struct b2DynamicTree {
pub nodes: *mut b2TreeNode,
pub root: i32,
pub nodeCount: i32,
pub nodeCapacity: i32,
pub freeList: i32,
pub proxyCount: i32,
pub leafIndices: *mut i32,
pub leafBoxes: *mut b2AABB,
pub leafCenters: *mut b2Vec2,
pub binIndices: *mut i32,
pub rebuildCapacity: i32,
}Expand description
The dynamic tree structure. This should be considered private data. It is placed here for performance reasons.
Fields§
§nodes: *mut b2TreeNodeThe tree nodes
root: i32The root index
nodeCount: i32The number of nodes
nodeCapacity: i32The allocated node space
freeList: i32Node free list
proxyCount: i32Number of proxies created
leafIndices: *mut i32Leaf indices for rebuild
leafBoxes: *mut b2AABBLeaf bounding boxes for rebuild
leafCenters: *mut b2Vec2Leaf bounding box centers for rebuild
binIndices: *mut i32Bins for sorting during rebuild
rebuildCapacity: i32Allocated space for rebuilding
Trait Implementations§
Source§impl Clone for b2DynamicTree
impl Clone for b2DynamicTree
Source§fn clone(&self) -> b2DynamicTree
fn clone(&self) -> b2DynamicTree
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 b2DynamicTree
Auto Trait Implementations§
impl !Send for b2DynamicTree
impl !Sync for b2DynamicTree
impl Freeze for b2DynamicTree
impl RefUnwindSafe for b2DynamicTree
impl Unpin for b2DynamicTree
impl UnsafeUnpin for b2DynamicTree
impl UnwindSafe for b2DynamicTree
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