I haven’t found quite the answer I’m looking for, but I apologize in advance if it’s out there and I just haven’t located it.
Could someone explain to me in excruciating detail how, in code such as
let v = vec![1,2,3]; let i = vec.iter();
how exactly does
vec.iter() get resolved to the method
fn iter(&self) for the slice type. I’m looking for explicit details on when the Deref trait and implicit borrowing kicks in during the process of method resolution.