Just some general feedback on your code:
- For your struct Place(line 9-13), you seem to implement a default implemention for your struct with arbritary values. This can be reduced to:
#[derive(Default)]
struct Place {
x: i32,
y: i32,
z: i32
}
Which will implement default values for your struct(most likely just 0's).
- From line 83-89
You can use iter().map() instead, which is moe in line with idiomatic rust.
Just some general feedback on your code:
Which will implement default values for your struct(most likely just 0's).
You can use
iter().map()instead, which is moe in line with idiomatic rust.