#[repr(C)]pub struct b2DynamicTree {
pub nodes: *mut b2TreeNode,
pub root: c_int,
pub nodeCount: c_int,
pub nodeCapacity: c_int,
pub freeList: c_int,
pub proxyCount: c_int,
pub leafIndices: *mut c_int,
pub leafBoxes: *mut b2AABB,
pub leafCenters: *mut b2Vec2,
pub binIndices: *mut c_int,
pub rebuildCapacity: c_int,
}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: c_intThe root index
nodeCount: c_intThe number of nodes
nodeCapacity: c_intThe allocated node space
freeList: c_intNode free list
proxyCount: c_intNumber of proxies created
leafIndices: *mut c_intLeaf indices for rebuild
leafBoxes: *mut b2AABBLeaf bounding boxes for rebuild
leafCenters: *mut b2Vec2Leaf bounding box centers for rebuild
binIndices: *mut c_intBins for sorting during rebuild
rebuildCapacity: c_intAllocated 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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for b2DynamicTree
impl Debug for b2DynamicTree
impl Copy for b2DynamicTree
Auto Trait Implementations§
impl Freeze for b2DynamicTree
impl RefUnwindSafe for b2DynamicTree
impl !Send for b2DynamicTree
impl !Sync for b2DynamicTree
impl Unpin for b2DynamicTree
impl UnwindSafe for b2DynamicTree
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)