Enum splashsurf_lib::density_map::DensityMap [−][src]
pub enum DensityMap<I: Index, R: Real> {
Standard(HashMap<I, R, FxBuildHasher>),
DashMap(ReadDashMap<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>)
Tuple Fields of Standard
0: HashMap<I, R, FxBuildHasher>
DashMap(ReadDashMap<I, R, FxBuildHasher>)
Tuple Fields of DashMap
0: ReadDashMap<I, R, FxBuildHasher>
Implementations
Converts the contained map into a vector of tuples of (flat_point_index, density)
Returns the density value at the specified flat point index
Trait Implementations
Performs the conversion.
Performs the conversion.
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
Mutably borrows from an owned value. Read more
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.