Assumption -- The Vec does not have any NaN values or exhibit any NaN behavior.
T
I took the answer from @Akiner Alkan and tweaked it a bit, here's a simple one-liner without any unwrap, doing the job:
let maxi = my_vec.iter().enumerate().fold((0, 0.0), |max, (ind, &val)| if val > max.1 {(ind, val)} else {max});
(PS: new to rust and first post in StackOverflow, don't judge me if I do it wrong :D)