mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-30 03:27:44 +00:00
Minor docs improvement
This commit is contained in:
parent
71f1c4470d
commit
24e1db2f0c
2 changed files with 17 additions and 16 deletions
|
|
@ -4855,6 +4855,7 @@ impl Type {
|
|||
self.normalize_trait_assoc_type(db, &[], iterator_item.into())
|
||||
}
|
||||
|
||||
/// Resolves the projection `<Self as IntoIterator>::IntoIter` and returns the resulting type
|
||||
pub fn into_iterator_iter(self, db: &dyn HirDatabase) -> Option<Type> {
|
||||
let trait_ = db.lang_item(self.env.krate, LangItem::IntoIterIntoIter).and_then(|it| {
|
||||
let into_iter_fn = it.as_function()?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue