Function darling_core::util::path_to_string
source · [−]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");