Struct splashsurf_lib::topology::DirectedAxisArray [−][src]
pub struct DirectedAxisArray<T> { /* fields omitted */ }
Expand description
Collection that stores one value per unique DirectedAxis
, can be used e.g. to store neighbors in a cartesian grid
Implementations
Constructs a new array and fills it with values produced by the given closure
Returns a reference to the value stored for the given axis
Returns a mutable reference to the value stored for the given axis
Returns an iterator of all unique directed axes and references to the corresponding stored value
Returns an iterator of all unique directed axes and mutable references to the corresponding stored value
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for DirectedAxisArray<T> where
T: RefUnwindSafe,
impl<T> Send for DirectedAxisArray<T> where
T: Send,
impl<T> Sync for DirectedAxisArray<T> where
T: Sync,
impl<T> Unpin for DirectedAxisArray<T> where
T: Unpin,
impl<T> UnwindSafe for DirectedAxisArray<T> where
T: 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.