Skip to main content

Crate rspack_paths

Crate rspack_paths 

Source

Structs§

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 Utf8Components of a Utf8Path.
Utf8Path
A slice of a UTF-8 path (akin to str).
Utf8PathBuf
An owned, mutable UTF-8 path (akin to String).

Enums§

Utf8Component
A single component of a path.
Utf8Prefix
Windows path prefixes, e.g., C: or \\server\share.

Traits§

AssertUtf8

Functions§

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.

Type Aliases§

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.