pub struct Capacity {
pub static_shape_count: i32,
pub dynamic_shape_count: i32,
pub static_body_count: i32,
pub dynamic_body_count: i32,
pub contact_count: i32,
}Expand description
Optional world capacities that can be used to avoid run-time allocations. (b3Capacity)
Fields§
§static_shape_count: i32Number of expected static shapes.
dynamic_shape_count: i32Number of expected dynamic and kinematic shapes.
static_body_count: i32Number of expected static bodies.
dynamic_body_count: i32Number of expected dynamic and kinematic bodies.
contact_count: i32Number of expected contacts.
Trait Implementations§
impl Copy for Capacity
impl Eq for Capacity
impl StructuralPartialEq for Capacity
Auto Trait Implementations§
impl Freeze for Capacity
impl RefUnwindSafe for Capacity
impl Send for Capacity
impl Sync for Capacity
impl Unpin for Capacity
impl UnsafeUnpin for Capacity
impl UnwindSafe for Capacity
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