pub fn ty_name_str(ty: &P<Ty>) -> Name {
    match ty.node {
        TyKind::Path(_, ref path) => {
            path.segments.iter().last().unwrap().identifier.name
        },
        _ => Name::intern("<unknown type>"),
    }
}
/// Gets the name of a type.
Gets the name of a type.
Gets the name of a type .
pub fn ty_name_str(ty: &P<Ty>) -> Name {
    match ty.node {
        TyKind::Path(_, ref path) => {
            path.segments.iter().last().unwrap().identifier.name
        },
        _ => Name::intern("<unknown type>"),
    }
}
pub fn ty_name_str ( ty : & P < Ty > ) -> Name { match ty . node { TyKind :: Path ( _ , ref path ) => { path . segments . iter ( ) . last ( ) . unwrap ( ) . identifier . name } , _ => Name :: intern ( " " ) , } }
Gets the name of a type.
Gets the name of a type .
ty
&P<Ty>
ty
&P<Ty>