Extract the short name from a potentially namespaced class name.
(name: &str)
| 420 | |
| 421 | /// Extract the short name from a potentially namespaced class name. |
| 422 | fn short_name(name: &str) -> &str { |
| 423 | name.rsplit('\\').next().unwrap_or(name) |
| 424 | } |
| 425 | |
| 426 | #[cfg(test)] |
| 427 | mod tests { |
no test coverage detected