pub struct Particle { /* private fields */ }Expand description
A single live particle.
Implementations§
Source§impl Particle
impl Particle
pub fn get_position(&self) -> Vector2D
pub fn get_velocity(&self) -> Vector2D
pub fn get_age(&self) -> f64
pub fn get_lifetime(&self) -> f64
pub fn get_mut_lifetime(&mut self) -> &mut f64
Trait Implementations§
impl Copy for Particle
Source§impl PartialOrd for Particle
impl PartialOrd for Particle
impl StructuralPartialEq for Particle
Auto Trait Implementations§
impl Freeze for Particle
impl RefUnwindSafe for Particle
impl Send for Particle
impl Sync for Particle
impl Unpin for Particle
impl UnsafeUnpin for Particle
impl UnwindSafe for Particle
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