/// Returns the source path or name of the capability as a string, useful for debugging.
Returns the source path or name of the capability as a string, useful for debugging.
Returns the source path or name of the capability as a string useful for debugging .
pub fn source_id(&self) -> String {
        self.path()
            .map(|p| format!("{}", p))
            .or_else(|| self.name().map(|n| format!("{}", n)))
            .unwrap_or_default()
    }
pub fn source_id ( & self ) -> String { self . path ( ) . map ( | p | format ! ( " " p ) ) . or_else ( | | self . name ( ) . map ( | n | format ! ( " " n ) ) ) . unwrap_or_default ( ) }
Returns the source path or name of the capability as a string, useful for debugging.
Returns the source path or name of the capability as a string useful for debugging .
&self