mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-02 04:48:13 +00:00
make generate_mut_trait_impl assist trigged for std trait only
This commit is contained in:
parent
8d8d12120d
commit
b84940b199
3 changed files with 29 additions and 17 deletions
|
|
@ -54,6 +54,10 @@ impl FamousDefs<'_, '_> {
|
|||
self.find_trait("core:convert:Into")
|
||||
}
|
||||
|
||||
pub fn core_convert_Index(&self) -> Option<Trait> {
|
||||
self.find_trait("core:ops:Index")
|
||||
}
|
||||
|
||||
pub fn core_option_Option(&self) -> Option<Enum> {
|
||||
self.find_enum("core:option:Option")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue