#[repr(C)]pub struct b2Capacity {
pub staticShapeCount: c_int,
pub dynamicShapeCount: c_int,
pub staticBodyCount: c_int,
pub dynamicBodyCount: c_int,
pub contactCount: c_int,
}Expand description
Optional world capacities that can be used to avoid run-time allocations. @see b2World_GetMaxCapacity @ingroup world
Fields§
§staticShapeCount: c_intNumber of expected static shapes.
dynamicShapeCount: c_intNumber of expected dynamic and kinematic shapes.
staticBodyCount: c_intNumber of expected static bodies.
dynamicBodyCount: c_intNumber of expected dynamic and kinematic bodies.
contactCount: c_intNumber of expected contacts.
Trait Implementations§
Source§impl Clone for b2Capacity
impl Clone for b2Capacity
Source§fn clone(&self) -> b2Capacity
fn clone(&self) -> b2Capacity
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 b2Capacity
Auto Trait Implementations§
impl Freeze for b2Capacity
impl RefUnwindSafe for b2Capacity
impl Send for b2Capacity
impl Sync for b2Capacity
impl Unpin for b2Capacity
impl UnsafeUnpin for b2Capacity
impl UnwindSafe for b2Capacity
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