pub fn path_to_string(path: &Path) -> String
Expand description
Transform Rust paths to a readable and comparable string.
§Limitations
- Leading colons are ignored.
- Angle brackets and
as
elements are ignored.
§Example
assert_eq!(path_to_string(&parse_quote!(a::b)), "a::b");