Structs§
- Files
Index - FilesIndex contains paths that can be efficiently looked up with (prefix, suffix) pairs.
- Search
Path - Search
Path File - The obvious implementation of
SearchPath::files
is aVec<PathBuf>
. But it is searched repeatedly byfind_library_crate
, and the searches involve checking the prefix and suffix of the filename of eachPathBuf
. This is doable, but very slow, because it involves calls tofile_name
andextension
that are themselves slow.