Struct ethers_solc::cache::PathMap [−][src]
pub struct PathMap {
pub source_name_to_path: HashMap<PathBuf, PathBuf>,
pub path_to_source_name: HashMap<PathBuf, PathBuf>,
}
Expand description
A helper type to handle source name/full disk mappings
The disk path is the actual path where a file can be found on disk.
A source name is the internal identifier and is the remaining part of the disk path starting
with the configured source directory, (contracts/contract.sol
)
Fields
source_name_to_path: HashMap<PathBuf, PathBuf>
all libraries to the source set while keeping track of their actual disk path
(contracts/contract.sol
-> /Users/.../contracts.sol
)
path_to_source_name: HashMap<PathBuf, PathBuf>
inverse of source_name_to_path
: (/Users/.../contracts.sol
-> contracts/contract.sol
)
Implementations
Returns all contract names of the files mapped with the disk path
Returns a new map with the source names as keys
Returns a new map with the disk paths as keys
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PathMap
impl UnwindSafe for PathMap
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more