Function rustfmt_nightly::imports::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.