Skip to main content Crate rspack_paths Copy item path Source InternedPath An interned path: equal paths share one allocation process-wide, so equality is a pointer
comparison and each path is stored once. Hashing still uses the precomputed content hash
(see Hash below). PreHashedPath The interning kind for paths: a header holding the precomputed hash_path of the path,
plus the path’s OsStr bytes, stored together in one allocation. Utf8Components An iterator over the Utf8Component s of a Utf8Path . Utf8Path A slice of a UTF-8 path (akin to str ). Utf8PathBuf An owned, mutable UTF-8 path (akin to String ). Utf8Component A single component of a path. Utf8Prefix Windows path prefixes, e.g., C: or \\server\share. AssertUtf8 hash_path Hash a path with FxHasher, hashing the raw OsStr bytes on Unix rather than walking
components as Path::hash does — materially cheaper on the resolver’s hot path. InternedPathDashMap A standard DashMap using InternedPath as the key type with a custom Hasher
that just uses the precomputed hash for speed instead of calculating it. InternedPathDashSet A standard DashSet using InternedPath as the key type with a custom Hasher
that just uses the precomputed hash for speed instead of calculating it. InternedPathIndexSet A standard IndexSet using InternedPath as the key type with a custom Hasher
that just uses the precomputed hash for speed instead of calculating it. InternedPathMap A standard HashMap using InternedPath as the key type with a custom Hasher
that just uses the precomputed hash for speed instead of calculating it. InternedPathSet A standard HashSet using InternedPath as the key type with a custom Hasher
that just uses the precomputed hash for speed instead of calculating it.