Enum libliquidfun_sys::box2d::ffi::b2BodyType
source · #[repr(u32)]pub enum b2BodyType {
b2_staticBody = 0,
b2_kinematicBody = 1,
b2_dynamicBody = 2,
}Expand description
The body type. static: zero mass, zero velocity, may be manually moved kinematic: zero mass, non-zero velocity set by user, moved by solver dynamic: positive mass, non-zero velocity determined by forces, moved by solver
Variants§
Trait Implementations§
source§impl Clone for b2BodyType
impl Clone for b2BodyType
source§fn clone(&self) -> b2BodyType
fn clone(&self) -> b2BodyType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl ExternType for b2BodyType
impl ExternType for b2BodyType
source§impl Hash for b2BodyType
impl Hash for b2BodyType
source§impl PartialEq for b2BodyType
impl PartialEq for b2BodyType
source§fn eq(&self, other: &b2BodyType) -> bool
fn eq(&self, other: &b2BodyType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for b2BodyType
impl StructuralEq for b2BodyType
impl StructuralPartialEq for b2BodyType
impl UniquePtrTarget for b2BodyType
impl VectorElement for b2BodyType
impl WeakPtrTarget for b2BodyType
Auto Trait Implementations§
impl RefUnwindSafe for b2BodyType
impl Send for b2BodyType
impl Sync for b2BodyType
impl Unpin for b2BodyType
impl UnwindSafe for b2BodyType
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