Enum splashsurf_lib::density_map::DensityMap
source · pub enum DensityMap<I: Index, R: Real> {
Standard(HashMap<I, R, FxBuildHasher>),
DashMap(ReadOnlyView<I, R, FxBuildHasher>),
}
Expand description
A sparse density map
The density map contains values for all points of the background grid where the density is not trivially zero (which is the case when a point is outside of the compact support of any particles).
Variants§
Standard(HashMap<I, R, FxBuildHasher>)
DashMap(ReadOnlyView<I, R, FxBuildHasher>)
Implementations§
Trait Implementations§
source§impl<I: Clone + Index, R: Clone + Real> Clone for DensityMap<I, R>
impl<I: Clone + Index, R: Clone + Real> Clone for DensityMap<I, R>
source§fn clone(&self) -> DensityMap<I, R>
fn clone(&self) -> DensityMap<I, R>
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<I: Index, R: Real> From<DashMap<I, R, BuildHasherDefault<FxHasher>>> for DensityMap<I, R>
impl<I: Index, R: Real> From<DashMap<I, R, BuildHasherDefault<FxHasher>>> for DensityMap<I, R>
source§fn from(map: DashMap<I, R, FxBuildHasher>) -> Self
fn from(map: DashMap<I, R, FxBuildHasher>) -> Self
Converts to this type from the input type.
source§impl<I: Index, R: Real> From<HashMap<I, R, BuildHasherDefault<FxHasher>>> for DensityMap<I, R>
impl<I: Index, R: Real> From<HashMap<I, R, BuildHasherDefault<FxHasher>>> for DensityMap<I, R>
source§fn from(map: HashMap<I, R, FxBuildHasher>) -> Self
fn from(map: HashMap<I, R, FxBuildHasher>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<I, R> !RefUnwindSafe for DensityMap<I, R>
impl<I, R> Send for DensityMap<I, R>
impl<I, R> Sync for DensityMap<I, R>
impl<I, R> Unpin for DensityMap<I, R>where I: Unpin, R: Unpin,
impl<I, R> UnwindSafe for DensityMap<I, R>where I: UnwindSafe, R: UnwindSafe,
Blanket Implementations§
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
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.