Struct libliquidfun_sys::box2d::ffi::b2MotorJointDef
source · #[repr(C, align(8))]pub struct b2MotorJointDef { /* private fields */ }Expand description
Motor joint definition.
Implementations§
source§impl b2MotorJointDef
impl b2MotorJointDef
sourcepub unsafe fn Initialize(
self: Pin<&mut b2MotorJointDef>,
bodyA: *mut b2Body,
bodyB: *mut b2Body
)
pub unsafe fn Initialize( self: Pin<&mut b2MotorJointDef>, bodyA: *mut b2Body, bodyB: *mut b2Body )
Initialize the bodies and offsets using the current transforms.
pub fn new() -> impl New<Output = Self>
Trait Implementations§
source§impl AsRef<b2JointDef> for b2MotorJointDef
impl AsRef<b2JointDef> for b2MotorJointDef
source§fn as_ref(self: &b2MotorJointDef) -> &b2JointDef
fn as_ref(self: &b2MotorJointDef) -> &b2JointDef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl CopyNew for b2MotorJointDef
impl CopyNew for b2MotorJointDef
source§unsafe fn copy_new(
other: &b2MotorJointDef,
this: Pin<&mut MaybeUninit<b2MotorJointDef>>
)
unsafe fn copy_new( other: &b2MotorJointDef, this: Pin<&mut MaybeUninit<b2MotorJointDef>> )
Synthesized copy constructor.
source§impl Drop for b2MotorJointDef
impl Drop for b2MotorJointDef
source§fn drop(self: &mut b2MotorJointDef)
fn drop(self: &mut b2MotorJointDef)
Synthesized destructor.
source§impl ExternType for b2MotorJointDef
impl ExternType for b2MotorJointDef
source§impl MakeCppStorage for b2MotorJointDef
impl MakeCppStorage for b2MotorJointDef
source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2MotorJointDef
unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2MotorJointDef
Allocates heap space for this type in C++ and return a pointer
to that space, but do not initialize that space (i.e. do not
yet call a constructor). Read more
source§unsafe fn free_uninitialized_cpp_storage(arg0: *mut b2MotorJointDef)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut b2MotorJointDef)
Frees a C++ allocation which has not yet
had a constructor called. Read more
source§impl MoveNew for b2MotorJointDef
impl MoveNew for b2MotorJointDef
source§unsafe fn move_new(
other: Pin<MoveRef<'_, b2MotorJointDef>>,
this: Pin<&mut MaybeUninit<b2MotorJointDef>>
)
unsafe fn move_new( other: Pin<MoveRef<'_, b2MotorJointDef>>, this: Pin<&mut MaybeUninit<b2MotorJointDef>> )
Synthesized move constructor.
impl UniquePtrTarget for b2MotorJointDef
impl VectorElement for b2MotorJointDef
impl WeakPtrTarget for b2MotorJointDef
Auto Trait Implementations§
impl RefUnwindSafe for b2MotorJointDef
impl !Send for b2MotorJointDef
impl !Sync for b2MotorJointDef
impl !Unpin for b2MotorJointDef
impl UnwindSafe for b2MotorJointDef
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