pub struct ParticleEffect {
pub name: String,
pub template: ParticleTemplate,
pub shape: EmitterShape,
pub rate: f32,
pub count: u32,
pub forces: Vec<ParticleForce>,
pub duration: Option<f32>,
}Expand description
A named, reusable particle effect that combines template + shape + forces.
Fields§
§name: String§template: ParticleTemplate§shape: EmitterShape§rate: f32§count: u32§forces: Vec<ParticleForce>§duration: Option<f32>Implementations§
Trait Implementations§
Source§impl Clone for ParticleEffect
impl Clone for ParticleEffect
Source§fn clone(&self) -> ParticleEffect
fn clone(&self) -> ParticleEffect
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ParticleEffect
impl RefUnwindSafe for ParticleEffect
impl Send for ParticleEffect
impl Sync for ParticleEffect
impl Unpin for ParticleEffect
impl UnsafeUnpin for ParticleEffect
impl UnwindSafe for ParticleEffect
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