pub struct ParticleConfig {
pub life: [f32; 2],
pub speed: [f32; 2],
pub scale: [f32; 2],
pub color: ColorConfig,
}Fields§
§life: [f32; 2]Lifetime range in seconds [min, max].
speed: [f32; 2]Initial speed range [min, max].
scale: [f32; 2]Scale range [min, max].
color: ColorConfigColor configuration.
Trait Implementations§
Source§impl Clone for ParticleConfig
impl Clone for ParticleConfig
Source§fn clone(&self) -> ParticleConfig
fn clone(&self) -> ParticleConfig
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 ParticleConfig
impl Debug for ParticleConfig
Source§impl<'de> Deserialize<'de> for ParticleConfig
impl<'de> Deserialize<'de> for ParticleConfig
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 ParticleConfig
impl RefUnwindSafe for ParticleConfig
impl Send for ParticleConfig
impl Sync for ParticleConfig
impl Unpin for ParticleConfig
impl UnsafeUnpin for ParticleConfig
impl UnwindSafe for ParticleConfig
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