[−][src]Struct salva3d::geometry::ParticlesContacts
The set of contacts affecting the particles of a single fluid.
Implementations
impl<N: RealField> ParticlesContacts<N>
[src]
pub fn new() -> Self
[src]
Creates an empty set of contacts.
pub fn particle_contacts(&self, i: usize) -> &RwLock<Vec<Contact<N>>>
[src]
The set of contacts affecting the particle i
.
pub fn particle_contacts_mut(
&mut self,
i: usize
) -> &mut RwLock<Vec<Contact<N>>>
[src]
&mut self,
i: usize
) -> &mut RwLock<Vec<Contact<N>>>
The set of mutable contacts affecting the particle i
.
pub fn contacts(&self) -> &[RwLock<Vec<Contact<N>>>]
[src]
All the contacts in this set.
The self.contacts()[i]
contains all the contact affecting the particle i
.
pub fn contacts_mut(&mut self) -> &mut [RwLock<Vec<Contact<N>>>]
[src]
All the mutable contacts in this set.
The self.contacts()[i]
contains all the contact affecting the particle i
.
pub fn len(&self) -> usize
[src]
The total number of contacts in this set.
pub fn apply_permutation(&mut self, _permutation: &[usize])
[src]
Apply a permutation to this set of contacts.
Trait Implementations
impl<N: Debug + RealField> Debug for ParticlesContacts<N>
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for ParticlesContacts<N>
impl<N> Send for ParticlesContacts<N> where
N: Scalar,
N: Scalar,
impl<N> Sync for ParticlesContacts<N> where
N: Scalar,
N: Scalar,
impl<N> Unpin for ParticlesContacts<N> where
N: Scalar + Unpin,
N: Scalar + Unpin,
impl<N> UnwindSafe for ParticlesContacts<N>
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> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,