Function source_name

Source
pub fn source_name<'a>(source: &'a Path, root: &Path) -> &'a Path
Expand description

Returns the source name for the given source path, the ancestors of the root path.

/Users/project/sources/contract.sol -> sources/contracts.sol