pub fn item_path_str(self, def_id: DefId) -> String {
        let mode = FORCE_ABSOLUTE.with(|force| {
            if force.get() {
                RootMode::Absolute
            } else {
                RootMode::Local
            }
        });
        let mut buffer = LocalPathBuffer::new(mode);
        self.push_item_path(&mut buffer, def_id);
        buffer.into_string()
    }
/// Returns a string identifying this def-id. This string is
/// suitable for user output. It is relative to the current crate
/// root, unless with_forced_absolute_paths was used.
Returns a string identifying this def-id. This string is
suitable for user output. It is relative to the current crate
root, unless with_forced_absolute_paths was used.
Returns a string identifying this def - id . This string is suitable for user output . It is relative to the current crate root unless with_forced_absolute_paths was used .
pub fn item_path_str(self, def_id: DefId) -> String {
        let mode = FORCE_ABSOLUTE.with(|force| {
            if force.get() {
                RootMode::Absolute
            } else {
                RootMode::Local
            }
        });
        let mut buffer = LocalPathBuffer::new(mode);
        self.push_item_path(&mut buffer, def_id);
        buffer.into_string()
    }
pub fn item_path_str ( self , def_id : DefId ) -> String { let mode = FORCE_ABSOLUTE . with ( | force | { if force . get ( ) { RootMode :: Absolute } else { RootMode :: Local } } ) ; let mut buffer = LocalPathBuffer :: new ( mode ) ; self . push_item_path ( & mut buffer , def_id ) ; buffer . into_string ( ) }
Returns a string identifying this def-id.
Returns a string identifying this def - id .
self
def_id
DefId
self
def_id
DefId