rustfmt_nightly::imports

Function path_to_imported_ident

Source
pub(crate) fn path_to_imported_ident(path: &Path) -> Ident
Expand description

Returns a name imported by a use declaration. E.g., returns Ordering for std::cmp::Ordering and self for std::cmp::self.