[][src]Struct salva2d::geometry::ParticlesContacts

pub struct ParticlesContacts<N: RealField> { /* fields omitted */ }

The set of contacts affecting the particles of a single fluid.

Methods

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]

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

impl<N> Sync for ParticlesContacts<N> where
    N: Scalar

impl<N> Unpin for ParticlesContacts<N> where
    N: Scalar + Unpin

impl<N> UnwindSafe for ParticlesContacts<N>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,