pub struct ParticleSystem<P: ParticleSystemProcessor<D, C>, D, C> {
pub config: C,
/* private fields */
}
Fields§
§config: C
Implementations§
Source§impl<P: ParticleSystemProcessor<D, C>, D, C> ParticleSystem<P, D, C>
impl<P: ParticleSystemProcessor<D, C>, D, C> ParticleSystem<P, D, C>
pub fn new(config: C, capacity: usize) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn push(&mut self, data: D)
pub fn extend(&mut self, iter: impl IntoIterator<Item = D>)
pub fn clear(&mut self)
pub fn process(&mut self)
pub fn emit(&self) -> impl Iterator<Item = ParticleInstance> + '_
Trait Implementations§
Auto Trait Implementations§
impl<P, D, C> Freeze for ParticleSystem<P, D, C>where
C: Freeze,
impl<P, D, C> RefUnwindSafe for ParticleSystem<P, D, C>where
C: RefUnwindSafe,
D: RefUnwindSafe,
impl<P, D, C> Send for ParticleSystem<P, D, C>
impl<P, D, C> Sync for ParticleSystem<P, D, C>
impl<P, D, C> Unpin for ParticleSystem<P, D, C>
impl<P, D, C> UnwindSafe for ParticleSystem<P, D, C>where
C: UnwindSafe,
D: UnwindSafe,
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