I'd like to have a function to which i can pass both a reference or something that can be converted to that reference cause it implements AsRef for that type. For example:
So apparently there's no AsRef<[f32;3]> for &[f32;3] - not sure why. But, I got it to work by using Borrow instead of AsRef, although this probably doesn't help you either since you mentioned the types implement AsRef:
There's a impl<'a, T> Borrow<T> for &'a T where T: ?Sized in the std, which is what I think makes the above work. I don't see such a blanket impl for AsRef though.