[−][src]Struct salva2d::geometry::ParticlesContacts
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
Auto Trait Implementations
impl RefUnwindSafe for ParticlesContacts
[src]
impl Send for ParticlesContacts
[src]
impl Sync for ParticlesContacts
[src]
impl Unpin for ParticlesContacts
[src]
impl UnwindSafe for ParticlesContacts
[src]
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,
pub 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>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub 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.
pub 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.
pub 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>,