vscode-rust
vscode-rust copied to clipboard
Goto trait implementation
Let's say I'm working on the code below and I want to find the code which "obj.func()" calls, in this case line 6. Afaik, there is currently no way to jump to line 6.
Putting the cursor on obj.func() and running "go to definition" jumps to line 2.
Putting the cursor on obj.func() and running "go to implementations" says "No implementation available for func".
It would be nice if there would be a "go to function" that would jump from ob.func() to line 6.
trait Funcy {
fn func(&self); // lin 2
}
struct SA {}
impl Funcy for SA {
fn func(&self) {} // line 6
}
struct SB {}
impl Funcy for SB {
fn func(&self) {}
}
fn main() {
let obj = SA{};
obj.func();
}
Please, it would be very good