Struct entmet_lib::datatypes::Particle
source · pub struct Particle<T>where
T: DataReader + DataWriter,{
pub particle_type: ParticleType,
pub data: Vec<T>,
}Expand description
A generic struct representing a particle.
This struct contains data of type T and is constrained to types implementing both
the DataReader and DataWriter traits.
Fields§
§particle_type: ParticleTypeThe type of particle
data: Vec<T>The data associated with the particle
Auto Trait Implementations§
impl<T> Freeze for Particle<T>
impl<T> RefUnwindSafe for Particle<T>where
T: RefUnwindSafe,
impl<T> Send for Particle<T>where
T: Send,
impl<T> Sync for Particle<T>where
T: Sync,
impl<T> Unpin for Particle<T>where
T: Unpin,
impl<T> UnwindSafe for Particle<T>where
T: 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