pub struct ParticleData {
pub particle_type: i32,
pub options: ParticleOptions,
}Expand description
Particle effect data.
Fields§
§particle_type: i32Particle type registry ID.
options: ParticleOptionsImplementations§
Source§impl ParticleData
impl ParticleData
pub fn new(particle_type: i32, options: ParticleOptions) -> Self
Trait Implementations§
Source§impl Clone for ParticleData
impl Clone for ParticleData
Source§fn clone(&self) -> ParticleData
fn clone(&self) -> ParticleData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParticleData
impl Debug for ParticleData
impl Eq for ParticleData
Source§impl PartialEq for ParticleData
impl PartialEq for ParticleData
Source§fn eq(&self, other: &ParticleData) -> bool
fn eq(&self, other: &ParticleData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParticleData
Auto Trait Implementations§
impl Freeze for ParticleData
impl RefUnwindSafe for ParticleData
impl Send for ParticleData
impl Sync for ParticleData
impl Unpin for ParticleData
impl UnsafeUnpin for ParticleData
impl UnwindSafe for ParticleData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.