fn compare_maps(actual: Map, expected: HashMap<u32, HashMap<u32, &str>>) -> bool {
    print_hash("expected: ", expected.clone());
    print_map("actual: ", actual.clone());
    for (y, v) in actual.iter() {
        for (x, t) in v.iter() {
            if t.name != *expected.get(y).unwrap().get(x).unwrap() {
                return false;
            }
        }
    }
    true
}
/// Utility function; Compares a generated map with a map-like structure which specifies only names.
Utility function; Compares a generated map with a map-like structure which specifies only names.
Utility function ; Compares a generated map with a map - like structure which specifies only names .
fn compare_maps(actual: Map, expected: HashMap<u32, HashMap<u32, &str>>) -> bool {
    print_hash("expected: ", expected.clone());
    print_map("actual: ", actual.clone());
    for (y, v) in actual.iter() {
        for (x, t) in v.iter() {
            if t.name != *expected.get(y).unwrap().get(x).unwrap() {
                return false;
            }
        }
    }
    true
}
fn compare_maps ( actual : Map , expected : HashMap < u32 , HashMap < u32 , & str > > ) -> bool { print_hash ( " " , expected . clone ( ) ) ; print_map ( " " , actual . clone ( ) ) ; for ( y , v ) in actual . iter ( ) { for ( x , t ) in v . iter ( ) { if t . name != * expected . get ( y ) . unwrap ( ) . get ( x ) . unwrap ( ) { return false ; } } } true }
Utility function; Compares a generated map with a map-like structure which specifies only names.
Utility function ; Compares a generated map with a map - like structure which specifies only names .
actual
Map
expected
HashMap<u32, HashMap<u32, &str>>