[][src]Struct soa_derive_example::ParticlePtrMut

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

An analog of a mutable pointer to Particle with struct of array layout.

Fields

mass: *mut f64

A mutable pointer to a mass from a ParticleVec

position: *mut [f64; 3]

A mutable pointer to a position from a ParticleVec

kind: *mut usize

A mutable pointer to a kind from a ParticleVec

name: *mut String

A mutable pointer to a name from a ParticleVec

Implementations

impl ParticlePtrMut[src]

pub fn as_ptr(&self) -> ParticlePtr[src]

Convert a ParticlePtrMut to a ParticlePtr ; i.e. do a *mut T as *const T transformation

pub fn is_null(self) -> bool[src]

Similar to *mut T::is_null().

pub unsafe fn as_ref<'a>(self) -> Option<ParticleRef<'a>>[src]

Similar to *mut T::as_ref(), with the same safety caveats.

pub unsafe fn as_mut<'a>(self) -> Option<ParticleRefMut<'a>>[src]

Similar to *mut T::as_mut(), with the same safety caveats.

pub unsafe fn offset(self, count: isize) -> ParticlePtrMut[src]

Similar to *mut T::offset(), with the same safety caveats.

pub fn wrapping_offset(self, count: isize) -> ParticlePtrMut[src]

pub unsafe fn add(self, count: usize) -> ParticlePtrMut[src]

Similar to *mut T::add(), with the same safety caveats.

pub unsafe fn sub(self, count: usize) -> ParticlePtrMut[src]

Similar to *mut T::sub(), with the same safety caveats.

pub fn wrapping_add(self, count: usize) -> ParticlePtrMut[src]

Similar to *mut T::wrapping_add(), with the same safety caveats.

pub fn wrapping_sub(self, count: usize) -> ParticlePtrMut[src]

Similar to *mut T::wrapping_sub(), with the same safety caveats.

pub unsafe fn read(self) -> Particle[src]

Similar to *mut T::read(), with the same safety caveats.

pub unsafe fn read_volatile(self) -> Particle[src]

Similar to *mut T::read_volatile(), with the same safety caveats.

pub unsafe fn read_unaligned(self) -> Particle[src]

Similar to *mut T::read_unaligned(), with the same safety caveats.

pub unsafe fn write(self, val: Particle)[src]

Similar to *mut T::write(), with the same safety caveats.

pub unsafe fn write_volatile(self, val: Particle)[src]

Similar to *mut T::write_volatile(), with the same safety caveats.

pub unsafe fn write_unaligned(self, val: Particle)[src]

Similar to *mut T::write_unaligned(), with the same safety caveats.

Trait Implementations

impl Clone for ParticlePtrMut[src]

impl Copy for ParticlePtrMut[src]

impl Debug for ParticlePtrMut[src]

impl PartialEq<ParticlePtrMut> for ParticlePtrMut[src]

impl StructuralPartialEq for ParticlePtrMut[src]

Auto Trait Implementations

impl RefUnwindSafe for ParticlePtrMut

impl !Send for ParticlePtrMut

impl !Sync for ParticlePtrMut

impl Unpin for ParticlePtrMut

impl UnwindSafe for ParticlePtrMut

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.