[−][src]Struct soa_derive_example::ParticlePtrMut
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]
Similar to *mut T::wrapping_offset()
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]
fn clone(&self) -> ParticlePtrMut
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ParticlePtrMut
[src]
impl Debug for ParticlePtrMut
[src]
impl PartialEq<ParticlePtrMut> for ParticlePtrMut
[src]
fn eq(&self, other: &ParticlePtrMut) -> bool
[src]
fn ne(&self, other: &ParticlePtrMut) -> bool
[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]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,