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
V: RefUnwindSafe,
S: 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more