[]Struct lumol::sys::ParticleSliceMut

pub struct ParticleSliceMut<'a> {
    pub name: &'a mut [String],
    pub kind: &'a mut [ParticleKind],
    pub charge: &'a mut [f64],
    pub mass: &'a mut [f64],
    pub position: &'a mut [Vector3D],
    pub velocity: &'a mut [Vector3D],
}

A mutable slice of Particle inside a ParticleVec .

Fields

A mutable slice of name from a ParticleVec

A mutable slice of kind from a ParticleVec

A mutable slice of charge from a ParticleVec

A mutable slice of mass from a ParticleVec

A mutable slice of position from a ParticleVec

A mutable slice of velocity from a ParticleVec

Methods

impl<'a> ParticleSliceMut<'a>

Convert a ParticleSliceMut to a ParticleSlice in order to be able to use the methods on the non mutable version of the slices.

Similar to [Particle] ::len(), the length of all fields should be the same.

Similar to [Particle] ::is_empty(), the length of all fields should be the same.

Similar to [Particle] ::swap().

Similar to [Particle] ::get().

impl<'a> ParticleSliceMut<'a>

impl<'a> ParticleSliceMut<'a>

Get an iterator over the ParticleRef in this vector

Get a mutable iterator over the ParticleRefMut in this vector

Trait Implementations

impl<'a> IntoIterator for ParticleSliceMut<'a>

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl<'a> Debug for ParticleSliceMut<'a>

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for ParticleSliceMut<'a>

impl<'a> Sync for ParticleSliceMut<'a>

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<I> IntoIterator for I where
    I: Iterator
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

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

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more