pub struct Particle { /* private fields */ }Expand description
Individual pooled particle simulated without heap allocations.
Implementations§
Source§impl Particle
impl Particle
pub fn get_active(&self) -> bool
pub fn get_mut_active(&mut self) -> &mut bool
pub fn set_active(&mut self, val: bool) -> &mut Self
pub fn get_position(&self) -> Point
pub fn get_mut_position(&mut self) -> &mut Point
pub fn set_position(&mut self, val: Point) -> &mut Self
pub fn get_velocity(&self) -> Point
pub fn get_mut_velocity(&mut self) -> &mut Point
pub fn set_velocity(&mut self, val: Point) -> &mut Self
pub fn get_age(&self) -> f32
pub fn get_mut_age(&mut self) -> &mut f32
pub fn set_age(&mut self, val: f32) -> &mut Self
pub fn get_lifetime(&self) -> f32
pub fn get_mut_lifetime(&mut self) -> &mut f32
pub fn set_lifetime(&mut self, val: f32) -> &mut Self
pub fn get_start_size(&self) -> f32
pub fn get_mut_start_size(&mut self) -> &mut f32
pub fn set_start_size(&mut self, val: f32) -> &mut Self
pub fn get_end_size(&self) -> f32
pub fn get_mut_end_size(&mut self) -> &mut f32
pub fn set_end_size(&mut self, val: f32) -> &mut Self
pub fn get_start_color(&self) -> Color
pub fn get_mut_start_color(&mut self) -> &mut Color
pub fn set_start_color(&mut self, val: Color) -> &mut Self
pub fn get_end_color(&self) -> Color
pub fn get_mut_end_color(&mut self) -> &mut Color
pub fn set_end_color(&mut self, val: Color) -> &mut Self
pub fn get_drag(&self) -> f32
pub fn get_mut_drag(&mut self) -> &mut f32
pub fn set_drag(&mut self, val: f32) -> &mut Self
Trait Implementations§
impl Copy for Particle
impl StructuralPartialEq for Particle
Auto Trait Implementations§
impl Forget for Particle
impl Freeze for Particle
impl Move 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