Struct particular::compute_method::storage::ParticleReordered
source · pub struct ParticleReordered<'p, V, S> {
pub unordered: &'p [PointMass<V, S>],
/* private fields */
}
Expand description
Storage for particles which has a copy of the stored particles inside a ParticleOrdered
.
Fields§
§unordered: &'p [PointMass<V, S>]
Original, unordered particles.
Implementations§
source§impl<V, S> ParticleReordered<'_, V, S>
impl<V, S> ParticleReordered<'_, V, S>
sourcepub const fn ordered(&self) -> &ParticleOrdered<V, S>
pub const fn ordered(&self) -> &ParticleOrdered<V, S>
Returns a reference to the ParticleOrdered
.
sourcepub const fn massive_len(&self) -> usize
pub const fn massive_len(&self) -> usize
Returns the number of stored massive particles.
Trait Implementations§
source§impl<'p, V: Clone, S: Clone> Clone for ParticleReordered<'p, V, S>
impl<'p, V: Clone, S: Clone> Clone for ParticleReordered<'p, V, S>
source§fn clone(&self) -> ParticleReordered<'p, V, S>
fn clone(&self) -> ParticleReordered<'p, V, S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<V, S> ComputeMethod<ParticleReordered<'_, V, S>> for BruteForcePairs
impl<V, S> ComputeMethod<ParticleReordered<'_, V, S>> for BruteForcePairs
source§impl<V, S> ComputeMethod<ParticleReordered<'_, V, S>> for BruteForcePairsSoftened<S>
impl<V, S> ComputeMethod<ParticleReordered<'_, V, S>> for BruteForcePairsSoftened<S>
Auto Trait Implementations§
impl<'p, V, S> Freeze for ParticleReordered<'p, V, S>
impl<'p, V, S> RefUnwindSafe for ParticleReordered<'p, V, S>where
S: RefUnwindSafe,
V: RefUnwindSafe,
impl<'p, V, S> Send for ParticleReordered<'p, V, S>
impl<'p, V, S> Sync for ParticleReordered<'p, V, S>
impl<'p, V, S> Unpin for ParticleReordered<'p, V, S>
impl<'p, V, S> UnwindSafe for ParticleReordered<'p, V, S>
Blanket Implementations§
source§impl<U> AsPrimitive for U
impl<U> AsPrimitive for U
source§fn as_<F: FromPrimitive<Self>>(self) -> F
fn as_<F: FromPrimitive<Self>>(self) -> F
Converts this primitive into the input primitive.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<V, S, C, O> ComputeMethod<&ParticleReordered<'_, V, S>> for Cwhere
O: IntoIterator,
C: for<'a> ComputeMethod<ParticleSystem<'a, V, S, [PointMass<V, S>]>, Output = O>,
impl<V, S, C, O> ComputeMethod<&ParticleReordered<'_, V, S>> for Cwhere
O: IntoIterator,
C: for<'a> ComputeMethod<ParticleSystem<'a, V, S, [PointMass<V, S>]>, Output = O>,
source§fn compute(
&mut self,
reordered: &ParticleReordered<'_, V, S>
) -> <C as ComputeMethod<&ParticleReordered<'_, V, S>>>::Output
fn compute( &mut self, reordered: &ParticleReordered<'_, V, S> ) -> <C as ComputeMethod<&ParticleReordered<'_, V, S>>>::Output
Performs the computation between objects contained in the storage.