pub fn assoc_type_shorthand_candidates<R>(
        &self,
        resolution: &PathResolution,
        mut cb: impl FnMut(&Name, TypeAlias) -> Option<R>,
    ) -> Option<R> {
        let def = self.resolver.generic_def()?;
        hir_ty::associated_type_shorthand_candidates(
            self.db,
            def,
            resolution.in_type_ns()?,
            |name, _, id| cb(name, id.into()),
        )
    }
/// Iterates over associated types that may be specified after the given path (using
/// `Ty::Assoc` syntax).
Iterates over associated types that may be specified after the given path (using
`Ty::Assoc` syntax).
Iterates over associated types that may be specified after the given path ( using ` Ty :: Assoc ` syntax ) .
pub fn assoc_type_shorthand_candidates<R>(
        &self,
        resolution: &PathResolution,
        mut cb: impl FnMut(&Name, TypeAlias) -> Option<R>,
    ) -> Option<R> {
        let def = self.resolver.generic_def()?;
        hir_ty::associated_type_shorthand_candidates(
            self.db,
            def,
            resolution.in_type_ns()?,
            |name, _, id| cb(name, id.into()),
        )
    }
pub fn assoc_type_shorthand_candidates < R > ( & self , resolution : & PathResolution , mut cb : impl FnMut ( & Name , TypeAlias ) -> Option < R > , ) -> Option < R > { let def = self . resolver . generic_def ( ) ? ; hir_ty :: associated_type_shorthand_candidates ( self . db , def , resolution . in_type_ns ( ) ? , | name , _ , id | cb ( name , id . into ( ) ) , ) }
Iterates over associated types that may be specified after the given path (using
`Ty::Assoc` syntax).
Iterates over associated types that may be specified after the given path ( using ` Ty :: Assoc ` syntax ) .
&self
resolution
&PathResolution
cb
impl FnMut(&Name, TypeAlias) -> Option<R>
&self
resolution
&PathResolution
cb
impl FnMut(&Name, TypeAlias) -> Option<R>