Function validate_restrictions

Source
fn validate_restrictions(map: &Map, steps: &[PathStep])