// External includes.
// Standard includes.
// Internal includes.
use SubMap;
/// An iterator over mutable 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 mut sub_maps_source = Vec::<SubMap>::new();
/// let mut sub_maps_mut = SubMapsMut::new(&mut sub_maps_source);
/// for sub_map_mut in sub_maps_mut {
/// // Move all of the `SubMap`s 2 to the right, and 1 down.
/// *sub_map_mut.local_position_mut() = *sub_map_mut.local_position() + Position::new(2, 1);
/// }
/// ```