mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 10:58:02 +00:00
Add AsMut Borrow BorrowMut to minicore and famous_defs
This commit is contained in:
parent
7c3de9df36
commit
cb000ad313
2 changed files with 34 additions and 0 deletions
|
|
@ -106,6 +106,18 @@ impl FamousDefs<'_, '_> {
|
|||
self.find_trait("core:convert:AsRef")
|
||||
}
|
||||
|
||||
pub fn core_convert_AsMut(&self) -> Option<Trait> {
|
||||
self.find_trait("core:convert:AsMut")
|
||||
}
|
||||
|
||||
pub fn core_borrow_Borrow(&self) -> Option<Trait> {
|
||||
self.find_trait("core:borrow:Borrow")
|
||||
}
|
||||
|
||||
pub fn core_borrow_BorrowMut(&self) -> Option<Trait> {
|
||||
self.find_trait("core:borrow:BorrowMut")
|
||||
}
|
||||
|
||||
pub fn core_ops_ControlFlow(&self) -> Option<Enum> {
|
||||
self.find_enum("core:ops:ControlFlow")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue