Function gluon_base::resolve::canonical_alias
source · pub fn canonical_alias<'t, F, T>(
env: &(dyn TypeEnv<Type = T> + '_),
interner: &mut impl TypeContext<Symbol, T>,
typ: &'t T,
canonical: F
) -> Cow<'t, T>
Expand description
Resolves aliases until canonical
returns true
for an alias in which case it returns the
type that directly contains that alias