[][src]Struct soa_derive_example::Particle

pub struct Particle {
    pub mass: f64,
    pub position: [f64; 3],
    pub kind: usize,
    pub name: String,
}

A basic Particle type

Fields

mass: f64

Mass of the particle

position: [f64; 3]

Position of the particle

kind: usize

Kind of the particle

name: String

Name 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]

impl PartialEq<Particle> for Particle[src]

impl StructOfArray for Particle[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.