this has meant changing the type signature of forward() so that it accepts the rover by reference not value, and making Facing a Copy type so that the direction passed to forward can also be returned in its output |
||
---|---|---|
.. | ||
main.rs |
this has meant changing the type signature of forward() so that it accepts the rover by reference not value, and making Facing a Copy type so that the direction passed to forward can also be returned in its output |
||
---|---|---|
.. | ||
main.rs |