It compiles with function that takes mutable struct Position

the magic is in the arg   &mut Position 

read as "reference to mutable Position"