/// Prepend a camel unit to a tile
///
/// If the tile does not already contain a CamelUnit,
/// return a single-sized camel unit
Prepend a camel unit to a tile
If the tile does not already contain a CamelUnit,
return a single-sized camel unit
Prepend a camel unit to a tile If the tile does not already contain a CamelUnit return a single - sized camel unit
fn prepend_camel_to_tile(camel: Camel, tile: &Tile) -> Tile {
    match tile {
        Tile::Camels(ref unit) => Tile::Camels(prepend_camel_to_unit(camel, unit.clone())),
        _ => Tile::Camels(vec![camel]),
    }
}
fn prepend_camel_to_tile ( camel : Camel , tile : & Tile ) -> Tile { match tile { Tile :: Camels ( ref unit ) => Tile :: Camels ( prepend_camel_to_unit ( camel , unit . clone ( ) ) ) , _ => Tile :: Camels ( vec ! [ camel ] ) , } }
Prepend a camel unit to a tile
If the tile does not already contain a CamelUnit,
return a single-sized camel unit
Prepend a camel unit to a tile If the tile does not already contain a CamelUnit return a single - sized camel unit
camel
Camel
tile
&Tile