[−][src]Struct soa_derive_example::ParticlePtr
An analog of a pointer to
Particle
with struct of array layout.
Fields
mass: *const f64
A pointer to a mass
from a ParticleVec
position: *const [f64; 3]
A pointer to a position
from a ParticleVec
kind: *const usize
A pointer to a kind
from a ParticleVec
name: *const String
A pointer to a name
from a ParticleVec
Implementations
impl ParticlePtr
[src]
pub fn as_mut_ptr(&self) -> ParticlePtrMut
[src]
Convert a
ParticlePtr
to a
ParticlePtrMut
; i.e. do a *const T as *mut T
transformation.
pub fn is_null(self) -> bool
[src]
Similar to *const T::is_null()
.
pub unsafe fn as_ref<'a>(self) -> Option<ParticleRef<'a>>
[src]
Similar to *const T::as_ref()
,
with the same safety caveats.
pub unsafe fn offset(self, count: isize) -> ParticlePtr
[src]
Similar to *const T::offset()
,
with the same safety caveats.
pub fn wrapping_offset(self, count: isize) -> ParticlePtr
[src]
Similar to *const T::offset()
.
pub unsafe fn add(self, count: usize) -> ParticlePtr
[src]
Similar to *const T::add()
,
with the same safety caveats.
pub unsafe fn sub(self, count: usize) -> ParticlePtr
[src]
Similar to *const T::sub()
,
with the same safety caveats.
pub fn wrapping_add(self, count: usize) -> ParticlePtr
[src]
Similar to *const T::wrapping_add()
.
pub fn wrapping_sub(self, count: usize) -> ParticlePtr
[src]
Similar to *const T::wrapping_sub()
.
pub unsafe fn read(self) -> Particle
[src]
Similar to *const T::read()
,
with the same safety caveats.
pub unsafe fn read_volatile(self) -> Particle
[src]
Similar to *const T::read_volatile()
,
with the same safety caveats.
pub unsafe fn read_unaligned(self) -> Particle
[src]
Similar to *const T::read_unaligned()
,
with the same safety caveats.
Trait Implementations
impl Clone for ParticlePtr
[src]
fn clone(&self) -> ParticlePtr
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ParticlePtr
[src]
impl Debug for ParticlePtr
[src]
impl PartialEq<ParticlePtr> for ParticlePtr
[src]
fn eq(&self, other: &ParticlePtr) -> bool
[src]
fn ne(&self, other: &ParticlePtr) -> bool
[src]
impl StructuralPartialEq for ParticlePtr
[src]
Auto Trait Implementations
impl RefUnwindSafe for ParticlePtr
impl !Send for ParticlePtr
impl !Sync for ParticlePtr
impl Unpin for ParticlePtr
impl UnwindSafe for ParticlePtr
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>,