[−][src]Struct soa_derive_example::Particle
A basic Particle type
Fields
mass: f64Mass of the particle
position: [f64; 3]Position of the particle
kind: usizeKind of the particle
name: StringName of the particle
Implementations
impl Particle[src]
pub fn as_ref(&self) -> ParticleRef<'_>[src]
Create a
ParticleRef
from a borrowed
Particle
.
pub fn as_mut(&mut self) -> ParticleRefMut<'_>[src]
Create a
ParticleRefMut
from a mutably borrowed
Particle
.
Trait Implementations
impl Debug for Particle[src]
impl FromIterator<Particle> for ParticleVec[src]
fn from_iter<T: IntoIterator<Item = Particle>>(iter: T) -> Self[src]
impl PartialEq<Particle> for Particle[src]
impl StructOfArray for Particle[src]
type Type = ParticleVec
impl StructuralPartialEq for Particle[src]
Auto Trait Implementations
impl RefUnwindSafe for Particle
impl Send for Particle
impl Sync for Particle
impl Unpin for Particle
impl UnwindSafe for Particle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,