mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-03 13:23:25 +00:00
Add the ability to jump from into to from definitions
This commit is contained in:
parent
8364ef2997
commit
ea87eab4ff
2 changed files with 93 additions and 1 deletions
|
|
@ -50,6 +50,14 @@ impl FamousDefs<'_, '_> {
|
|||
self.find_trait("core:convert:From")
|
||||
}
|
||||
|
||||
pub fn core_convert_TryFrom(&self) -> Option<Trait> {
|
||||
self.find_trait("core:convert:TryFrom")
|
||||
}
|
||||
|
||||
pub fn core_str_FromStr(&self) -> Option<Trait> {
|
||||
self.find_trait("core:str:FromStr")
|
||||
}
|
||||
|
||||
pub fn core_convert_Into(&self) -> Option<Trait> {
|
||||
self.find_trait("core:convert:Into")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue