pub fn type_def(resolutions: &Resolutions, ty: &Ty) -> Option<DefId>Expand description
The struct, enum or native type a written type names, if any.
pub fn type_def(resolutions: &Resolutions, ty: &Ty) -> Option<DefId>The struct, enum or native type a written type names, if any.