pub struct ParticleEffect {
pub capacity: u32,
pub emitter: Emitter,
pub particle: ParticleConfig,
}Fields§
§capacity: u32Maximum number of live particles.
emitter: EmitterEmitter configuration.
particle: ParticleConfigParticle property ranges.
Implementations§
Source§impl ParticleEffect
impl ParticleEffect
pub fn load(source: &str) -> Result<Self, SpannedError>
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 moreSource§impl Debug for ParticleEffect
impl Debug for ParticleEffect
Source§impl<'de> Deserialize<'de> for ParticleEffect
impl<'de> Deserialize<'de> for ParticleEffect
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto 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