Module gut::algo::partition [−][src]
Expand description
This module defines routines for dealing with meshes composed of multiple connected components.
Implementation Notes
Currently due to the limitations of the Rust language, it is not straightforward (or impossible)
to generalize the partition function over types that don’t already implement Eq
and Hash
, if
we wanted to use a HashMap
. That is we can’t generalize the implementation to work with
floats or types that contain floats (e.g. arrays and tuples.
For this reason there exist two variations of partition functions that work with different assumptions on types.
Traits
Functions
Partition a given slice by unique values.
Partition a given slice by unique values.