Function call_path_suffix_with_args

Source
pub fn call_path_suffix_with_args(call_path: &String) -> Cow<'_, String>
Expand description

Returns the suffix of the call_path together with any type arguments if they exist. Convenient for subsequent showing of only the short name of a full name that was already shown.

E.g.: SomeName -> SomeName SomeName -> SomeName std::ops::Eq -> Eq some_lib::Struct<A, B> -> Struct<A, B>