pub struct b2ParticleHandle { /* private fields */ }Expand description
Handle to a particle. Particle indices are ephemeral: the same index might refer to a different particle, from frame-to-frame. If you need to keep a reference to a particular particle across frames, you should acquire a b2ParticleHandle. Use #b2ParticleSystem::GetParticleHandleFromIndex() to retrieve the b2ParticleHandle of a particle from the particle system.
Implementations§
Trait Implementations§
Source§impl Drop for b2ParticleHandle
impl Drop for b2ParticleHandle
Source§fn drop(self: &mut b2ParticleHandle)
fn drop(self: &mut b2ParticleHandle)
Empty destructor.
Source§impl ExternType for b2ParticleHandle
impl ExternType for b2ParticleHandle
Source§impl MakeCppStorage for b2ParticleHandle
impl MakeCppStorage for b2ParticleHandle
Source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2ParticleHandle
unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2ParticleHandle
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 b2ParticleHandle)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut b2ParticleHandle)
Frees a C++ allocation which has not yet
had a constructor called. Read more
impl UniquePtrTarget for b2ParticleHandle
impl WeakPtrTarget for b2ParticleHandle
Auto Trait Implementations§
impl Freeze for b2ParticleHandle
impl RefUnwindSafe for b2ParticleHandle
impl !Send for b2ParticleHandle
impl !Sync for b2ParticleHandle
impl !Unpin for b2ParticleHandle
impl UnwindSafe for b2ParticleHandle
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