/// Returns the target path for the debug symbol file, which will be
/// /usr/lib/debug/<path-to-executable>.debug
Returns the target path for the debug symbol file, which will be
usr/lib/debug/.debug
Returns the target path for the debug symbol file which will be usr / lib / debug / . debug
pub fn debug_target(&self) -> Option<PathBuf> {
        if self.is_built {
            // Turn an absolute path into one relative to "/"
            let relative = match self.target_path.strip_prefix(Path::new("/")) {
                Ok(path) => path,
                Err(_) => self.target_path.as_path(),
            };
            // Prepend the debug location
            let debug_path = Path::new("/usr/lib/debug").join(relative);
            // Add `.debug` to the end of the filename
            Some(debug_filename(&debug_path))
        } else {
            None
        }
    }
pub fn debug_target ( & self ) -> Option < PathBuf > { if self . is_built { // Turn an absolute path into one relative to "/" let relative = match self . target_path . strip_prefix ( Path :: new ( " " ) ) { Ok ( path ) => path , Err ( _ ) => self . target_path . as_path ( ) , } ; // Prepend the debug location let debug_path = Path :: new ( " " ) . join ( relative ) ; // Add `.debug` to the end of the filename Some ( debug_filename ( & debug_path ) ) } else { None } }
Returns the target path for the debug symbol file, which will be
usr/lib/debug/<path-to-executable>.debug
Returns the target path for the debug symbol file which will be usr / lib / debug / <path - to - executable > . debug
&self