strip_package_prefixes

Function strip_package_prefixes 

Source
pub fn strip_package_prefixes(type_expr: &str, _current_module: &str) -> String
Expand description

Strip package-qualified names from type expressions

Converts “package.Type” -> “Type” based on heuristics:

  • First part starts with lowercase (likely a module)
  • Last part starts with uppercase (likely a type)