// External includes.
// Standard includes.
// Internal includes.
use SubMap;
/// An iterator over immutable references to [`SubMap`](struct.SubMap.html).
///
/// The following is a basic example of abstracted functionality.
/// ```
/// # use dungen_minion_rooms_abstract::*;
/// # use dungen_minion_rooms_abstract::geometry::*;
/// # let sub_maps_source = Vec::<SubMap>::new();
/// let mut local_positions = Vec::new();
/// let sub_maps = SubMaps::new(&sub_maps_source);
/// for sub_map in sub_maps {
/// // Store the local position of each `SubMap`.
/// local_positions.push(*sub_map.local_position());
/// }
/// ```