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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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