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

pub struct ParticlesContacts { /* fields omitted */ }

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

Implementations

impl ParticlesContacts[src]

pub fn new() -> Self[src]

Creates an empty set of contacts.

pub fn particle_contacts(&self, i: usize) -> &RwLock<Vec<Contact>>[src]

The set of contacts affecting the particle i.

pub fn particle_contacts_mut(&mut self, i: usize) -> &mut RwLock<Vec<Contact>>[src]

The set of mutable contacts affecting the particle i.

pub fn contacts(&self) -> &[RwLock<Vec<Contact>>][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>>][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 Debug for ParticlesContacts[src]

Auto Trait Implementations

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>,