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.