pub struct ParticlePool { /* private fields */ }Implementations§
Source§impl ParticlePool
impl ParticlePool
pub fn new(capacity: usize) -> ParticlePool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn capacity(&self) -> usize
pub fn dropped(&self) -> u64
pub fn clear(&mut self)
pub fn spawn(&mut self, desc: ParticleDesc) -> Result<(), ParticleError>
pub fn update(&mut self, dt: f32) -> Result<(), ParticleError>
pub fn iter(&self) -> impl Iterator<Item = ParticleView>
Auto Trait Implementations§
impl Freeze for ParticlePool
impl RefUnwindSafe for ParticlePool
impl Send for ParticlePool
impl Sync for ParticlePool
impl Unpin for ParticlePool
impl UnwindSafe for ParticlePool
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