pub enum Spawn {
Once,
Periodic {
interval: Value,
count: Value,
total: Option<u32>,
max_alive: Option<u32>,
},
Distance {
step: Value,
count: Value,
total: Option<u32>,
max_alive: Option<u32>,
},
}Expand description
How an emitter makes particles.
Variants§
Once
One particle, once, when the emitter becomes active.
Periodic
count particles every interval seconds, total times at most, never more than max_alive alive.
Distance
count particles each time the emitter has moved step metres from where it last emitted.
Trait Implementations§
impl StructuralPartialEq for Spawn
Auto Trait Implementations§
impl Forget for Spawn
impl Freeze for Spawn
impl RefUnwindSafe for Spawn
impl Send for Spawn
impl Sync for Spawn
impl Unpin for Spawn
impl UnsafeUnpin for Spawn
impl UnwindSafe for Spawn
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