How can i list out the contents of an array line by line using the rust programing language for example the array [1, 2] when inputed would return 1 2 the code needs to be fast.